aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-07-02 03:33:12 +0000
committerBill Nottingham <notting@redhat.com>2000-07-02 03:33:12 +0000
commit764551268560ae1c05c7d499a28b439f2ab923c5 (patch)
tree80b0d00c6743aee1a90d46e89f3f00ae5f6827dc /rc.d
parent670813badd4ff32c28f47e7c6c71765d6c2511a6 (diff)
downloadinitscripts-764551268560ae1c05c7d499a28b439f2ab923c5.tar
initscripts-764551268560ae1c05c7d499a28b439f2ab923c5.tar.gz
initscripts-764551268560ae1c05c7d499a28b439f2ab923c5.tar.bz2
initscripts-764551268560ae1c05c7d499a28b439f2ab923c5.tar.xz
initscripts-764551268560ae1c05c7d499a28b439f2ab923c5.zip
allow 'fastboot' on kernel commandline to skip fsck
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit11
1 files changed, 9 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 375e5fe5..4ddd8695 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -144,6 +144,12 @@ else
domainname ""
fi
+if [ -f /fastboot -o grep -q "fastboot" /proc/cmdline 2>/dev/null ]; then
+ fastboot=yes
+ else
+ fastboot=
+fi
+
if [ -f /fsckoptions ]; then
fsckoptions=`cat /fsckoptions`
else
@@ -161,7 +167,8 @@ else
fi
_RUN_QUOTACHECK=0
-if [ ! -f /fastboot ]; then
+if [ -z "$fastboot" ]; then
+
STRING="Checking root filesystem"
echo $STRING
initlog -c "fsck -T -a $fsckoptions /"
@@ -434,7 +441,7 @@ fi
_RUN_QUOTACHECK=0
# Check filesystems
-if [ ! -f /fastboot ]; then
+if [ -z "$fastboot" ]; then
STRING="Checking filesystems"
echo $STRING
initlog -c "fsck -T -R -A -a $fsckoptions"