mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2f42b8c2ec
commit
2d15516d40
@@ -72,6 +72,7 @@ ROOTFS_DIR="/rootfs" # where to do the switch root
|
||||
MODULE_PRE_HOOKS="" # functions to call before running each module
|
||||
MODULE_POST_HOOKS="" # functions to call after running each module
|
||||
MODULES_DIR=/init.d # place to look for modules
|
||||
EFI_DIR=/sys/firmware/efi # place to store device firmware information
|
||||
|
||||
# make mount stop complaining about missing /etc/fstab
|
||||
touch /etc/fstab
|
||||
@@ -81,6 +82,10 @@ mkdir -p /proc /sys /run/lock /var/lock
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
|
||||
if [ -d $EFI_DIR ];then
|
||||
mount -t efivarfs none /sys/firmware/efi/efivars
|
||||
fi
|
||||
|
||||
# populate bootparam environment
|
||||
for p in `cat /proc/cmdline`; do
|
||||
opt=`echo $p | cut -d'=' -f1`
|
||||
|
||||
Reference in New Issue
Block a user