aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-03-19 14:51:42 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-03-19 14:51:42 +0000
commit11dd31df207ec365db599d8201e140ee663ef398 (patch)
treef4f25719d0146997ecae15d7c03a9987c8f01601
parent3c801a9fee90ca1df6eae3c7f1c29c90c16d9f49 (diff)
downloadinitscripts-11dd31df207ec365db599d8201e140ee663ef398.tar
initscripts-11dd31df207ec365db599d8201e140ee663ef398.tar.gz
initscripts-11dd31df207ec365db599d8201e140ee663ef398.tar.bz2
initscripts-11dd31df207ec365db599d8201e140ee663ef398.tar.xz
initscripts-11dd31df207ec365db599d8201e140ee663ef398.zip
Allow -y in $fsckoptions (#143351)
-rwxr-xr-xrc.d/rc.sysinit10
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 3056aafc..d4400463 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -307,16 +307,20 @@ if [ -f /etc/sysconfig/readonly-root ]; then
. /etc/rc.readonly
fi
fi
-
+
+if ! [[ " $fsckoptions" =~ " -y" ]]; then
+ fsckoptions="-a $fsckoptions"
+fi
+
_RUN_QUOTACHECK=0
if [ -z "$fastboot" -a "$READONLY" != "yes" ]; then
STRING=$"Checking filesystems"
echo $STRING
if [ "${RHGB_STARTED}" != "0" -a -w /etc/rhgb/temp/rhgb-console ]; then
- fsck -T -t noopts=_netdev -A -a $fsckoptions > /etc/rhgb/temp/rhgb-console
+ fsck -T -t noopts=_netdev -A $fsckoptions > /etc/rhgb/temp/rhgb-console
else
- fsck -T -t noopts=_netdev -A -a $fsckoptions
+ fsck -T -t noopts=_netdev -A $fsckoptions
fi
rc=$?