summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/files/init-live.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-live.sh')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 46cab6cc77..65183d7eec 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -95,8 +95,11 @@ boot_live_root() {
95 # Move the mount points of some filesystems over to 95 # Move the mount points of some filesystems over to
96 # the corresponding directories under the real root filesystem. 96 # the corresponding directories under the real root filesystem.
97 for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do 97 for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do
98 mkdir -p ${ROOT_MOUNT}/media/${dir##*/} 98 # Parse any OCT or HEX encoded chars such as spaces
99 mount -n --move $dir ${ROOT_MOUNT}/media/${dir##*/} 99 # in the mount points to actual ASCII chars
100 dir=`printf $dir`
101 mkdir -p "${ROOT_MOUNT}/media/${dir##*/}"
102 mount -n --move "$dir" "${ROOT_MOUNT}/media/${dir##*/}"
100 done 103 done
101 mount -n --move /proc ${ROOT_MOUNT}/proc 104 mount -n --move /proc ${ROOT_MOUNT}/proc
102 mount -n --move /sys ${ROOT_MOUNT}/sys 105 mount -n --move /sys ${ROOT_MOUNT}/sys