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: "
|
echo -n "Mounting root file system in read-only mode: "
|
||||||
mount -n -o remount,ro /
|
mount -n -o remount,ro /
|
||||||
evaluate_retval
|
retval=$?
|
||||||
echo
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
if [ $retval != 0 ]; then
|
||||||
$FAILURE
|
$FAILURE
|
||||||
echo
|
echo
|
||||||
echo "Cannot check root file system because it could not"
|
echo "Cannot check root file system because it could not"
|
||||||
@ -33,6 +32,9 @@ if [ $? != 0 ]; then
|
|||||||
$rc_base/init.d/halt
|
$rc_base/init.d/halt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo_success
|
||||||
|
echo
|
||||||
|
|
||||||
if [ -f /forcefsck ]; then
|
if [ -f /forcefsck ]; then
|
||||||
echo "/forcefsck exists, forcing file system check"
|
echo "/forcefsck exists, forcing file system check"
|
||||||
options="-f"
|
options="-f"
|
||||||
|
Loading…
Reference in New Issue
Block a user