System information
Sharing and maintaining SLES 10 SP2 Linux under z/VM 69
. /etc/rc.status
@@ -74,6 +75,9 @@
case "$1" in
start)
+ # ROR: add 1
+ echo "Read-only root: In modified $0"
+
#
# fsck may need a huge amount of memory, so make sure, it is there.
#
@@ -107,6 +111,7 @@
# if not booted via initrd, /dev is empty.
# use private devnode with proper permissions
ROOTFS_BLKDEV="/dev/shm/root"
+
rootcpio=`echo / | /bin/cpio --quiet -o -H newc`
rootmajor=0x${rootcpio:62:8}
rootminor=0x${rootcpio:70:8}
@@ -133,13 +138,16 @@
# on an umsdos root fs this mount will fail,
# so direct error messages to /dev/null.
# this seems to be ugly, but should not really be a problem.
- mount -n -o remount,ro / 2> /dev/null
+ mount -n -o remount,ro / 2> /dev/null
if test $? = 0; then
if test -n "$ROOTFS_FSCK" ; then
FSCK_RETURN=$ROOTFS_FSCK
else
- echo "Checking root file system..."
- fsck $FSCK_PROGRESSBAR -a $FSCK_FORCE $ROOTFS_BLKDEV
+ # ROR: chg 2
+# echo "Checking root file system..."
+# fsck $FSCK_PROGRESSBAR -a $FSCK_FORCE $ROOTFS_BLKDEV
+ echo "Checking /local filesystem..."
+ fsck $FSCK_PROGRESSBAR -a $FSCK_FORCE /local
# A return code of 1 indicates that file system errors
# were corrected, but that the boot may proceed.
# A return code of 2 or larger indicates failure.
@@ -167,11 +175,11 @@
/etc/init.d/kbd start
fi
echo
- echo "fsck failed. Please repair manually and reboot. The root"
- echo "file system is currently mounted read-only. To remount it"
- echo "read-write do:"
+ echo "fsck failed. Please repair manually and reboot."
+ echo "The /local file system is currently mounted read-only.
+ echo To remount it read-write do:"
echo
- echo " bash# mount -n -o remount,rw /"
+ echo " bash# mount -n -o remount,rw /local"
echo
echo "Attention: Only CONTROL-D will reboot the system in this"
echo "maintanance mode. shutdown or reboot will not work."
@@ -192,16 +200,31 @@
reboot -f
fi
sync
- mount -n -o remount,rw /