summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 4bd1b52..804e16e 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -79,11 +79,13 @@ boot_live_root() {
79 79
80 # Move the mount points of some filesystems over to 80 # Move the mount points of some filesystems over to
81 # the corresponding directories under the real root filesystem. 81 # the corresponding directories under the real root filesystem.
82 for dir in `awk '/\/dev.* \/media/{print $2}' /proc/mounts`; do
83 mkdir -p ${ROOT_MOUNT}/$dir
84 mount -n --move $dir ${ROOT_MOUNT}/$dir
85 done
82 mount -n --move /proc ${ROOT_MOUNT}/proc 86 mount -n --move /proc ${ROOT_MOUNT}/proc
83 mount -n --move /sys ${ROOT_MOUNT}/sys 87 mount -n --move /sys ${ROOT_MOUNT}/sys
84 mount -n --move /dev ${ROOT_MOUNT}/dev 88 mount -n --move /dev ${ROOT_MOUNT}/dev
85 # Move /media/$i over to the real root filesystem
86 mount -n --move /media/$i ${ROOT_MOUNT}/media/realroot
87 89
88 cd $ROOT_MOUNT 90 cd $ROOT_MOUNT
89 exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init 91 exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init