summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorSeblu <seblu@seblu.net>2011-02-06 02:48:05 +0100
committerThomas Bächler <thomas@archlinux.org>2011-02-27 11:47:27 +0100
commit96d9cf3c924d27cef23967e9427c18c34395d532 (patch)
tree58ceafe786fb2f886bc791356cd4b5f148ca6761 /rc.sysinit
parent15ff1596246ba37521ff8807722a7679390fdf01 (diff)
Allow forcefsck on kernel cmdline to have same effect as touching /forcefsck
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 44c3eac..4080a0d 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -217,7 +217,7 @@ fi
status "Mounting Root Read-only" /bin/mount -n -o remount,ro /
FORCEFSCK=
-[[ -f /forcefsck ]] && FORCEFSCK="-- -f"
+[[ -f /forcefsck || -n "$forcefsck" ]] && FORCEFSCK="-- -f"
NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,noshfs,nofuse,nofuseblk,noglusterfs"
fsck_reboot() {