summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
diff options
context:
space:
mode:
authorLiwei Song <liwei.song@windriver.com>2019-03-20 23:19:12 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-25 23:13:48 +0000
commit2d15516d403cffaefc2f6c006b95fcd48e2a2ae4 (patch)
tree0ef17635cca836ac9892d871b66bd4fac024ae42 /meta/recipes-core/initrdscripts
parent2f42b8c2ec3bcacc8862af5076136d0a5f5422ad (diff)
downloadpoky-2d15516d403cffaefc2f6c006b95fcd48e2a2ae4.tar.gz
initramfs-framework: mount efivarfs to make Intel VROC work well
efivafs contain some meta data about Intel VROC, which will be used by mdadm to create raid device. These are preparation work to support boot from Intel VROC RAID disk. (From OE-Core rev: b25869c76975bbcec8d2f22f680e58976ec4de5c) Signed-off-by: Liwei Song <liwei.song@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts')
-rwxr-xr-xmeta/recipes-core/initrdscripts/initramfs-framework/init5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init
index 3c7e09422d..c71ce0ce8c 100755
--- a/meta/recipes-core/initrdscripts/initramfs-framework/init
+++ b/meta/recipes-core/initrdscripts/initramfs-framework/init
@@ -72,6 +72,7 @@ ROOTFS_DIR="/rootfs" # where to do the switch root
72MODULE_PRE_HOOKS="" # functions to call before running each module 72MODULE_PRE_HOOKS="" # functions to call before running each module
73MODULE_POST_HOOKS="" # functions to call after running each module 73MODULE_POST_HOOKS="" # functions to call after running each module
74MODULES_DIR=/init.d # place to look for modules 74MODULES_DIR=/init.d # place to look for modules
75EFI_DIR=/sys/firmware/efi # place to store device firmware information
75 76
76# make mount stop complaining about missing /etc/fstab 77# make mount stop complaining about missing /etc/fstab
77touch /etc/fstab 78touch /etc/fstab
@@ -81,6 +82,10 @@ mkdir -p /proc /sys /run/lock /var/lock
81mount -t proc proc /proc 82mount -t proc proc /proc
82mount -t sysfs sysfs /sys 83mount -t sysfs sysfs /sys
83 84
85if [ -d $EFI_DIR ];then
86 mount -t efivarfs none /sys/firmware/efi/efivars
87fi
88
84# populate bootparam environment 89# populate bootparam environment
85for p in `cat /proc/cmdline`; do 90for p in `cat /proc/cmdline`; do
86 opt=`echo $p | cut -d'=' -f1` 91 opt=`echo $p | cut -d'=' -f1`