remounting messages

This commit is contained in:
Kolan Sh 2012-08-17 11:46:40 +04:00
parent 51b837be2a
commit ebb7d974d3
2 changed files with 4 additions and 0 deletions

View File

@ -49,6 +49,7 @@ FALSE_LIST=(FALSE False false NO No no 0)
if [ 0 -eq $STAGE ]; then
echo "======= STAGE $STAGE: remounting file systems ro->rw ======="
for fs in $RW_REMOUNT; do
echo "remounting $fs -> rw"
mount -o remount,rw $fs
[ 0 -ne $? ] && echo "Stage $STAGE: mount -o remount,rw $fs failed ;-( =======" && exit $STAGE
done
@ -435,6 +436,7 @@ fi
if [ 20 -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 $fs
[ 0 -ne $? ] && echo "Stage $STAGE: mount -o remount,ro $fs failed ;-( =======" && exit $STAGE
done

View File

@ -54,6 +54,7 @@ else
[ 0 -ne $? ] && echo "Kernel build failed ;-(" && exit -1
fi
echo "remounting /boot -> rw"
mount -o remount,rw /boot
$NICE_CMD make install
@ -67,6 +68,7 @@ sed -i "s~\/boot\/vmlinuz-[0-9][^ ]*~\/boot\/vmlinuz-$REVISION~g;
s~\/boot\/initramfs-[0-9][^ ]*~\/boot\/initramfs-$REVISION.img~g" \
/boot/grub/grub.conf
echo "remounting /boot -> ro"
mount -o remount,ro /boot
echo "--------- Rebuilding kernel modules ---------"