[oe-commits] Florian Boor : initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2 .

git version control git at git.openembedded.org
Thu May 5 22:18:33 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 994b4ede181c136850a09e7ff11059d8fd5553a7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=994b4ede181c136850a09e7ff11059d8fd5553a7

Author: Florian Boor <florian at kernelconcepts.de>
Date:   Tue May  3 18:04:33 2011 +0200

initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2.

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





More information about the Openembedded-commits mailing list