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-extroot/files/extmount.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package/block-extroot/files/extmount.sh') diff --git a/package/block-extroot/files/extmount.sh b/package/block-extroot/files/extmount.sh index 1d5ebf26f..44d662e63 100644 --- a/package/block-extroot/files/extmount.sh +++ b/package/block-extroot/files/extmount.sh @@ -24,3 +24,13 @@ er_load_modules() { rm -rf /tmp/extroot_modules } +pivot_rom() { # + mount -o move /proc $1/proc && \ + pivot_root $1 $1$2 && { + mount -o move $2/dev /dev + mount -o move $2/tmp /tmp + mount -o move $2/sys /sys 2>&- + return 0 + } +} + -- cgit v1.2.3