'-fake' option not needed in remount command.
This commit is contained in:
parent
38213b7641
commit
a1bf667031
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue