From 05abf91efc854c1cc367c80466a717fedb307c7c Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 21 Oct 2006 20:04:35 +0000 Subject: initscripts: add an extra check to checkroot.sh, inspired by the logicpd cset earlier --- packages/initscripts/initscripts-1.0/checkroot.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/initscripts/initscripts-1.0/checkroot.sh') diff --git a/packages/initscripts/initscripts-1.0/checkroot.sh b/packages/initscripts/initscripts-1.0/checkroot.sh index 0283e1acca..3729072656 100755 --- a/packages/initscripts/initscripts-1.0/checkroot.sh +++ b/packages/initscripts/initscripts-1.0/checkroot.sh @@ -153,6 +153,13 @@ fi if [ $(grep rootfs /proc/mounts | awk '{print $4}') = rw ]; then exit 0 fi + +# Add a second check, which seems to be needed for some kernel versions +if [ $(grep "/dev/root" /proc/mounts | awk '{print $4}') = rw ]; then + exit 0 +fi + + echo "Remounting root file system..." mount -n -o remount,$rootmode / if test "$rootmode" = rw -- cgit v1.2.3