[oe] [PATCH] initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2.

Florian Boor florian.boor at kernelconcepts.de
Tue May 3 16:04:33 UTC 2011


From: Florian Boor <florian at kernelconcepts.de>

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

Signed-off-by: Florian Boor <florian.boor at kernelconcepts.de>
---
 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





More information about the Openembedded-devel mailing list