summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/finish3
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init4
2 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish
index 716c2f44af..21eaa57393 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/finish
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish
@@ -35,10 +35,11 @@ finish_run() {
35 mount -n --move "$dir" "${ROOTFS_DIR}/media/${dir##*/}" 35 mount -n --move "$dir" "${ROOTFS_DIR}/media/${dir##*/}"
36 done 36 done
37 37
38 debug "Moving /dev, /proc and /sys onto rootfs..." 38 debug "Moving /dev, /proc, /sys and /run onto rootfs..."
39 mount --move /dev $ROOTFS_DIR/dev 39 mount --move /dev $ROOTFS_DIR/dev
40 mount --move /proc $ROOTFS_DIR/proc 40 mount --move /proc $ROOTFS_DIR/proc
41 mount --move /sys $ROOTFS_DIR/sys 41 mount --move /sys $ROOTFS_DIR/sys
42 mount --move /run $ROOTFS_DIR/run
42 43
43 cd $ROOTFS_DIR 44 cd $ROOTFS_DIR
44 exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init} 45 exec switch_root $ROOTFS_DIR ${bootparam_init:-/sbin/init}
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index a48b77e95e..5dd252219a 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -81,9 +81,11 @@ EFI_DIR=/sys/firmware/efi # place to store device firmware information
81touch /etc/fstab 81touch /etc/fstab
82 82
83# initialize /proc, /sys, /run/lock and /var/lock 83# initialize /proc, /sys, /run/lock and /var/lock
84mkdir -p /proc /sys /run/lock /var/lock 84mkdir -p /proc /sys /run /var/lock
85mount -t proc proc /proc 85mount -t proc proc /proc
86mount -t sysfs sysfs /sys 86mount -t sysfs sysfs /sys
87mount -t tmpfs tmpfs /run
88mkdir -p /run/lock
87 89
88if [ -d $EFI_DIR ];then 90if [ -d $EFI_DIR ];then
89 mount -t efivarfs none /sys/firmware/efi/efivars 91 mount -t efivarfs none /sys/firmware/efi/efivars