aboutsummaryrefslogtreecommitdiffstats
path: root/package/block-extroot/files
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2011-03-27 05:39:47 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2011-03-27 05:39:47 +0000
commit544d1c045ed90e8ca127632a1951abe231886b3a (patch)
tree11c6cf7fc2abde4acbbf836ce930f4591cc80e84 /package/block-extroot/files
parent860c1cc790d226bf0438745fc734f7b3c1357412 (diff)
downloadupstream-544d1c045ed90e8ca127632a1951abe231886b3a.tar.gz
upstream-544d1c045ed90e8ca127632a1951abe231886b3a.tar.bz2
upstream-544d1c045ed90e8ca127632a1951abe231886b3a.zip
block-mount block-extroot: Rename /tmp/rom-disabled to /tmp/whole_root-dsibled for disabled mounts of a non-overlay external rootfs.
SVN-Revision: 26311
Diffstat (limited to 'package/block-extroot/files')
-rw-r--r--package/block-extroot/files/55_determine_extroot_sysupgrade10
1 files changed, 8 insertions, 2 deletions
diff --git a/package/block-extroot/files/55_determine_extroot_sysupgrade b/package/block-extroot/files/55_determine_extroot_sysupgrade
index d458b63bb1..b0cd9036c2 100644
--- a/package/block-extroot/files/55_determine_extroot_sysupgrade
+++ b/package/block-extroot/files/55_determine_extroot_sysupgrade
@@ -7,6 +7,12 @@
check_set_md5sum() {
local er_md5sum_file
er_md5sum_file="${ER_OVERLAY_PREFIX}/.extroot.md5sum"
+ local er_disabled
+ if [ "${ER_OVERLAY_ROM}" = "/rom" ]; then
+ er_disabled=/tmp/whole_root-disabled
+ else
+ er_disabled=/tmp${ER_OVERLAY_ROM}-disabled
+ fi
local er_extroot_md5sum
if [ -f $md5sum_file ]; then
@@ -24,8 +30,8 @@ check_set_md5sum() {
cat $er_md5sum_file >$er_overlay_file
elif [ "$er_extroot_overlay_md5sum" != "$er_extroot_md5sum" ]; then
pi_extroot_mount_success="false"
- mkdir -p /tmp${ER_OVERLAY_ROM}-disabled
- mount --move ${ER_OVERLAY_ROM} /tmp${ER_OVERLAY_ROM}-disabled
+ mkdir -p $er_disabled
+ mount --move ${ER_OVERLAY_ROM} $er_disabled
fi
}