initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2.
PATCH 1/1 initscripts: Improve parsing of mount parameters in order to fix remounting of rw jffs2.
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(-)
recipes/initscripts/initscripts-1.0/checkroot +1 -1
@@ -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
Signature · 1 line
1.7.0.4