summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2013-01-23 14:08:04 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-25 12:42:46 +0000
commitf8a4a74c8cd69de2b3332526e1110ff745fb824d (patch)
treeb9ca65818e2cb40a32a07a6fe84aa2ea1a7b500f /meta/recipes-core
parent8aa508970ab3d83f990c122dd7e242f58b152b1b (diff)
downloadpoky-f8a4a74c8cd69de2b3332526e1110ff745fb824d.tar.gz
init-live.sh: move /media/xxx over to the real root filesystem
Previously, the /media/xxx which contains the root image was not moved to be under the real root filesystem. Because of this, the output of the 'mount' command is somewhat confusing, that is, it has some mount point that is not even in the filesystem. Besides, on some machine, it caused the recovery procedure when we booted it next time. This patches fixes this issue by moving the /media/xxx over to be under the real root filesystem. [YOCTO #2064] [YOCTO #3705] (From OE-Core rev: 261d21d36298bb7822ee7370c30441f42ef2b093) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index f0d4f227a2..4f8618ba4b 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -82,6 +82,8 @@ boot_live_root() {
82 mount -n --move /proc ${ROOT_MOUNT}/proc 82 mount -n --move /proc ${ROOT_MOUNT}/proc
83 mount -n --move /sys ${ROOT_MOUNT}/sys 83 mount -n --move /sys ${ROOT_MOUNT}/sys
84 mount -n --move /dev ${ROOT_MOUNT}/dev 84 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
85 87
86 cd $ROOT_MOUNT 88 cd $ROOT_MOUNT
87 exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init 89 exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init