aboutsummaryrefslogtreecommitdiff
path: root/rc.boot
diff options
context:
space:
mode:
Diffstat (limited to 'rc.boot')
-rwxr-xr-xrc.boot12
1 files changed, 9 insertions, 3 deletions
diff --git a/rc.boot b/rc.boot
index e0d9951..7d12a78 100755
--- a/rc.boot
+++ b/rc.boot
@@ -38,6 +38,10 @@ out "Mounting pseudo filesystems..."; {
mnt /dev/shm -o mode=1777,nosuid,nodev -nt tmpfs shm
}
+out "Parsing kernel commandline..."; {
+ parse_cmdline
+}
+
[ "$dmesg_level" ] && {
out "Setting dmesg level..."
dmesg -n$dmesg_level
@@ -55,12 +59,14 @@ out "Remounting rootfs as read-only..."; {
mount -o remount,ro / || shell
}
-out "Checking filesystems..."; {
- fsck -ATat noopts=_netdev
+[ "$FASTBOOT" = 1 ] || {
+ out "Checking filesystems..."
+ fsck "-ATat${FORCEFSCK}" noopts=_netdev
[ $? -gt 1 ] && shell
}
-out "Mounting rootfs read-write..."; {
+[ "$RO" = "1" ] || {
+ out "Mounting rootfs read-write..."
mount -o remount,rw / || shell
}