From patchwork Tue May 3 16:04:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2. Date: Tue, 03 May 2011 16:04:33 -0000 From: Florian Boor X-Patchwork-Id: 3113 Message-Id: <1304438673-11897-1-git-send-email-florian.boor@kernelconcepts.de> To: openembedded-devel@lists.openembedded.org Cc: Florian Boor From: Florian Boor This change filters additional mount parameters which can cause jffs2 filesystems to get remounted even if mounted rw already. Signed-off-by: Florian Boor --- 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