summaryrefslogtreecommitdiff
path: root/package/block-mount/files
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2011-03-13 09:24:24 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2011-03-13 09:24:24 +0000
commit183b4d1a28eb811e51886f251a1b7f0d749aac41 (patch)
tree13f4a5768729da111106ca7371e80c021ac51c78 /package/block-mount/files
parent63c68ca40e83969aeefac18173a92aad6d3827ec (diff)
downloadmtk-20170518-183b4d1a28eb811e51886f251a1b7f0d749aac41.zip
mtk-20170518-183b4d1a28eb811e51886f251a1b7f0d749aac41.tar.gz
mtk-20170518-183b4d1a28eb811e51886f251a1b7f0d749aac41.tar.bz2
extroot: block-mount block-extroot: Added ability to do a whole disk extroot instead of only an overlay-based extroot.
SVN-Revision: 26109
Diffstat (limited to 'package/block-mount/files')
-rw-r--r--package/block-mount/files/mount.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/block-mount/files/mount.sh b/package/block-mount/files/mount.sh
index 3056c73..d82a927 100644
--- a/package/block-mount/files/mount.sh
+++ b/package/block-mount/files/mount.sh
@@ -41,10 +41,14 @@ config_mount_by_section() {
if [ "$find_rootfs" = "1" ]; then
if [ "$is_rootfs" -eq 1 ]; then
target=/overlay
+ elif [ "$target" = "/" ]; then
+ target=/rom
fi
else
if [ "$is_rootfs" -eq 1 ] || [ "$target" = "/overlay" ]; then
target=/tmp/overlay-disabled
+ elif [ "$target" = "/" ] || [ "$target" = "/rom" ]; then
+ target="/tmp/rom-disabled"
fi
fi
@@ -59,6 +63,9 @@ config_mount_by_section() {
[ "$target" = "/overlay" ] && {
rootfs_found=1
}
+ [ "$target" = "/rom" ] && {
+ rootfs_found=1
+ }
}
return 0
}