diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-19 13:37:55 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-19 13:46:27 +0100 |
commit | bf17e347d11680827627fc90d2556808f4d33d90 (patch) | |
tree | cfb2a287f31f81a47f7d8e5c042dc171ad06d9a6 /generic | |
parent | 5d9054ea509fb7827c572f72bc2cced5f9a211ec (diff) | |
download | ptxdist-bf17e347d11680827627fc90d2556808f4d33d90.tar.gz ptxdist-bf17e347d11680827627fc90d2556808f4d33d90.tar.xz |
[initmethod-bbinit] never touch mtab when remounting rw/ro
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'generic')
-rwxr-xr-x | generic/lib/init/initmethod-bbinit-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/lib/init/initmethod-bbinit-functions.sh b/generic/lib/init/initmethod-bbinit-functions.sh index c6b1f7d90..122e37883 100755 --- a/generic/lib/init/initmethod-bbinit-functions.sh +++ b/generic/lib/init/initmethod-bbinit-functions.sh @@ -9,7 +9,7 @@ mount_root_rw() { touch "/.root_is_rw" > /dev/null 2>&1 && return echo -n "remounting root rw..." - mount /dev/root / -o remount,rw > /dev/null 2>&1 + mount /dev/root / -n -o remount,rw > /dev/null 2>&1 if [ "$?" -ne "0" ]; then echo "failed, aborting" return 1 @@ -22,7 +22,7 @@ mount_root_restore() { rm "/.root_is_rw" > /dev/null 2>&1 && return echo -n "remounting root ro..." - mount /dev/root / -o remount,ro > /dev/null 2>&1 + mount /dev/root / -n -o remount,ro > /dev/null 2>&1 if [ "$?" -ne "0" ]; then echo "failed, aborting" return 1 |