From d4627d82f4310994d6b14123a99a2c195de6320f Mon Sep 17 00:00:00 2001 From: cshore Date: Sun, 13 Mar 2011 09:24:24 +0000 Subject: [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 --- package/block-mount/files/mount.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package/block-mount') diff --git a/package/block-mount/files/mount.sh b/package/block-mount/files/mount.sh index 3056c73aa..d82a92783 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 } -- cgit v1.2.3