System information

Sharing and maintaining SLES 10 SP2 Linux under z/VM 81
# [[ $2 =~ $sl ]] || NEED_REMOUNT=1
case "$sl" in
ro) WRITABLE=ro ;;
rw) WRITABLE=rw ;;
esac
done
test "$WRITABLE" = "unknown" && WRITABLE=rw
[[ ${2} =~ $WRITABLE ]] || NEED_REMOUNT=1
}
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.
#
# However, in the case of an active LKCD configuration, we need to
# recover the crash dump from the swap partition first, so we cannot
# yet activate them.
#
if ! lkcd_active ; then
echo "Activating swap-devices in /etc/fstab..."
swapon -ae &> /dev/null
rc_status -v1 -r
fi
#
# If we use a serial console, don't use the fsck progress bar
#
FSCK_PROGRESSBAR="-V"
[ -x /sbin/showconsole ] && [ "`/sbin/showconsole`" = "/dev/tty1" ] &&
FSCK_PROGRESSBAR="-C"
#
# do fsck and start sulogin, if it fails.
#
FSCK_RETURN=0
MAY_FSCK=1
# we may get ROOTFS_BLKDEV passed from initrd, skip extra actions
if [ -n "$ROOTFS_BLKDEV" ] ; then
if [ -n "$ROOTFS_REALDEV" ] ; then
ROOTFS_BLKDEV=$ROOTFS_REALDEV
fi
else
# 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}
if [ $((rootmajor)) -ne 0 ] ; then
echo /bin/mknod -m600 $ROOTFS_BLKDEV b $((rootmajor)) $((rootminor))
/bin/mknod -m600 $ROOTFS_BLKDEV b $((rootmajor)) $((rootminor))
fi
MAY_FSCK=0