aboutsummaryrefslogtreecommitdiff
path: root/rc.boot
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-20 14:57:02 +0300
committerCem Keylan <cem@ckyln.com>2020-05-20 14:57:02 +0300
commit50c3bba44ffff5c4105648275f36aa64e6a96e02 (patch)
treee9b5eeac9baacec82b0b5cbf9ff9f448153c65f9 /rc.boot
parent2c629502b4248d266ecde461fb8773198507c6ec (diff)
downloadinit-50c3bba44ffff5c4105648275f36aa64e6a96e02.tar.gz
add option to log boot and shutdown to a file
Diffstat (limited to 'rc.boot')
-rwxr-xr-xrc.boot4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.boot b/rc.boot
index 24f3a4d..3a59a79 100755
--- a/rc.boot
+++ b/rc.boot
@@ -12,7 +12,7 @@ mnt() {
done < /proc/mounts
mnt="$1"; shift
- mount "$@" "$mnt"
+ mount "$@" "$mnt" 2>&1 | log
}
# Display a pretty welcome message
@@ -61,7 +61,7 @@ out "Remounting rootfs as read-only..."; {
[ "$FASTBOOT" = 1 ] || {
out "Checking filesystems..."
- fsck "-ATat${FORCEFSCK}" noopts=_netdev
+ fsck "-ATat${FORCEFSCK}" noopts=_netdev 2>&1 | log
[ $? -gt 1 ] && shell
}