From: Florian Boor <[email protected]>

This change filters additional mount parameters which can cause jffs2 
filesystems to
get remounted even if mounted rw already.

Signed-off-by: Florian Boor <[email protected]>
---
 recipes/initscripts/initscripts-1.0/checkroot |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recipes/initscripts/initscripts-1.0/checkroot 
b/recipes/initscripts/initscripts-1.0/checkroot
index 7ad00d0..576f051 100755
--- a/recipes/initscripts/initscripts-1.0/checkroot
+++ b/recipes/initscripts/initscripts-1.0/checkroot
@@ -186,7 +186,7 @@ ROOTFSDEV="/dev/root"
 if ! grep -q "^$ROOTFSDEV\>" /proc/mounts; then
   ROOTFSDEV="rootfs"
 fi
-if [ x$(grep "^$ROOTFSDEV\>" /proc/mounts | awk '{print $4}') = "x$rootmode" 
]; then
+if [ x$(grep "^$ROOTFSDEV\>" /proc/mounts | awk '{print $4}' | awk -F, '{print 
$1}') = "x$rootmode" ]; then
        echo "Root filesystem already $rootmode, not remounting"
        exit 0
 fi
-- 
1.7.0.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to