'-fake' option not needed in remount command.

This commit is contained in:
Kolan Sh 2013-05-02 18:29:48 +04:00
parent 38213b7641
commit a1bf667031
2 changed files with 3 additions and 3 deletions

View File

@ -567,7 +567,7 @@ if [ $STAGE_CNT -eq $STAGE ]; then
echo "======= STAGE $STAGE: remounting file systems rw->ro ======="
for fs in $RO_REMOUNT; do
echo "remounting $fs -> ro"
mount -f -o remount,ro -force $fs
mount -o remount,ro -force $fs
[ 0 -ne $? ] && echo "Stage $STAGE: mount -o remount,ro -force $fs failed ;-( =======" && exit $STAGE
done

View File

@ -116,8 +116,8 @@ cd $pwdtmp
for fs in $RO_REMOUNT; do
if [[ "$fs" =~ ^/+usr/*$ || "$fs" =~ ^/+boot/*$ ]]; then
echo "remounting $fs -> ro"
mount -f -o remount,ro -force $fs
[ 0 -ne $? ] && echo "mount -f -o remount,ro -force $fs failed ;-( =======" && exit -1
mount -o remount,ro -force $fs
[ 0 -ne $? ] && echo "mount -o remount,ro -force $fs failed ;-( =======" && exit -1
fi
done