checkfs: fix return code check after remounting root fs read/only (Davide Madrisan)
This commit is contained in:
parent
5698192bd7
commit
773585feb7
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user