System information

70 Sharing and maintaining SLES 10 SP2 Linux under z/VM
- test $FSCK_RETURN -gt 0 && touch /fsck_corrected_errors
+# ROR: del 1, add 4
+# mount -n -o remount,rw /
+ mount -n /local
+ mount -n --bind /local/etc /etc
+ mount -n --bind /local/root /root
+ mount -n --bind /local/srv /srv
+ test $FSCK_RETURN -gt 0 && touch /fsck_corrected_errors
else
echo
- echo '*** ERROR! Cannot fsck because root is not read-only!'
+# ROR: chg 1
+# echo '*** ERROR! Cannot fsck because root is not read-only!'
+ echo '*** ERROR! Cannot fsck because /local is not read-only!'
echo
fi
else
if test "$ROOTFS_FSCK" != "0" ; then
- echo "root file system (/) is NOT being checked."
+# ROR: del 1, add 1
+# echo "root file system (/) is NOT being checked."
+ echo "/local file system is NOT being checked."
+# ROR: del 1, add 4
+# mount -n -o remount,rw /local
+ mount -n /local
+ mount -n --bind /local/etc /etc
+ mount -n --bind /local/root /root
+ mount -n --bind /local/srv /srv
fi
# check if root filesystem ro/rw matches fstab entry
myopt_should=$(get_options /etc/fstab first)
@@ -209,9 +232,13 @@
WRITABLE=unknown
NEED_REMOUNT=0
have_option $myopt_should $myopt_is
- if test "$NEED_REMOUNT" = "1" ; then
- mount -n -o remount,$WRITABLE /
- fi
+# if test "$NEED_REMOUNT" = "1" ; then
+# mount -n -o remount,$WRITABLE /
+# fi
+ mount -n /local
+ mount -n --bind /local/etc /etc
+ mount -n --bind /local/root /root
+ mount -n --bind /local/srv /srv
fi
# start with a clean mtab and enter root fs entry
rm -f /etc/mtab*
@@ -219,6 +246,10 @@
;;
stop)
;;
+# ROR: add 3
+ halt|reboot)
+ mount -n -o remount,ro /local 2> /dev/null
+ ;;
restart)
rc_failed 3
rc_status -v