]> git.openpandora.org Git - openembedded.git/commitdiff
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 0283e1accaef52bd56c6493b013e6db5c2ad33fa..37290726564be0fe26ced684f742b9553701dcc5 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 928caae19d93ad7134b683d2d731b5cef01e97fd..005b8cfab6807bb0f1450cbc0ec081d74933b17c 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 \