Commit 773585fe authored by Silvan Calarco's avatar Silvan Calarco

checkfs: fix return code check after remounting root fs read/only (Davide Madrisan)

parent 5698192b
......@@ -15,10 +15,9 @@ fi
echo -n "Mounting root file system in read-only mode: "
mount -n -o remount,ro /
evaluate_retval
echo
retval=$?
if [ $? != 0 ]; then
if [ $retval != 0 ]; then
$FAILURE
echo
echo "Cannot check root file system because it could not"
......@@ -33,6 +32,9 @@ if [ $? != 0 ]; then
$rc_base/init.d/halt
fi
echo_success
echo
if [ -f /forcefsck ]; then
echo "/forcefsck exists, forcing file system check"
options="-f"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment