diff --git a/sbin/gentoo-upgrade.sh b/sbin/gentoo-upgrade.sh index df48219..d5277b0 100755 --- a/sbin/gentoo-upgrade.sh +++ b/sbin/gentoo-upgrade.sh @@ -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 diff --git a/sbin/kernel-rebuild.sh b/sbin/kernel-rebuild.sh index 467aa69..adcea6b 100755 --- a/sbin/kernel-rebuild.sh +++ b/sbin/kernel-rebuild.sh @@ -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 ---------"