summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-02-12 12:02:24 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-02-16 17:30:09 +0100
commit5ff9ebcba67dadb96b7a97c24d42fe6eadab33a0 (patch)
treedda5a8276ed0b406f817c96852807a3971ac365d /generic
parent108630ff1126d8454d9123f06c6eb9a9a8a5b326 (diff)
downloadptxdist-5ff9ebcba67dadb96b7a97c24d42fe6eadab33a0.tar.gz
ptxdist-5ff9ebcba67dadb96b7a97c24d42fe6eadab33a0.tar.xz
[initmethod-bbinit] explicitly specify /dev/root as device when remounting /
mount from util-linux-ng fails without this if /etc/mtab is empty. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/lib/init/initmethod-bbinit-functions.sh4
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 5e0b432a7..c6b1f7d90 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 / -o remount,rw > /dev/null 2>&1
+ mount /dev/root / -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 / -o remount,ro > /dev/null 2>&1
+ mount /dev/root / -o remount,ro > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo "failed, aborting"
return 1