diff options
author | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2011-03-13 09:24:24 +0000 |
---|---|---|
committer | Daniel Dickinson <daniel@cshore.neomailbox.net> | 2011-03-13 09:24:24 +0000 |
commit | 2edddd450b0610a08c30cf3be6504f8199df16f8 (patch) | |
tree | 2ecde042e1f9ca33ce04a4ffcdd521a9c4fb3bc1 /package/block-mount/files/mount.sh | |
parent | 72748339e82bbf5242e74801568282529b465ee1 (diff) | |
download | master-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.tar.gz master-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.tar.bz2 master-187ad058-2edddd450b0610a08c30cf3be6504f8199df16f8.zip |
[package] extroot: block-mount block-extroot: Added ability to do a whole disk extroot instead of only an overlay-based extroot.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26109 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/block-mount/files/mount.sh')
-rw-r--r-- | package/block-mount/files/mount.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/package/block-mount/files/mount.sh b/package/block-mount/files/mount.sh index 3056c73aa9..d82a927835 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 } |