initscripts: add an extra check to checkroot.sh, inspired by the logicpd cset earlier
authorKoen Kooi <koen@openembedded.org>
Sat, 21 Oct 2006 20:04:35 +0000 (20:04 +0000)
committerKoen Kooi <koen@openembedded.org>
Sat, 21 Oct 2006 20:04:35 +0000 (20:04 +0000)
packages/initscripts/initscripts-1.0/checkroot.sh
packages/initscripts/initscripts_1.0.bb

index 0283e1a..3729072 100755 (executable)
@@ -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
index 928caae..005b8cf 100644 (file)
@@ -5,7 +5,7 @@ DEPENDS = "makedevs"
 DEPENDS_openzaurus = "makedevs virtual/kernel"
 RDEPENDS = "makedevs"
 LICENSE = "GPL"
-PR = "r76"
+PR = "r77"
 
 SRC_URI = "file://halt \
            file://ramdisk \