diff options
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 5 |
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 | |||
72 | MODULE_PRE_HOOKS="" # functions to call before running each module | 72 | MODULE_PRE_HOOKS="" # functions to call before running each module |
73 | MODULE_POST_HOOKS="" # functions to call after running each module | 73 | MODULE_POST_HOOKS="" # functions to call after running each module |
74 | MODULES_DIR=/init.d # place to look for modules | 74 | MODULES_DIR=/init.d # place to look for modules |
75 | EFI_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 |
77 | touch /etc/fstab | 78 | touch /etc/fstab |
@@ -81,6 +82,10 @@ mkdir -p /proc /sys /run/lock /var/lock | |||
81 | mount -t proc proc /proc | 82 | mount -t proc proc /proc |
82 | mount -t sysfs sysfs /sys | 83 | mount -t sysfs sysfs /sys |
83 | 84 | ||
85 | if [ -d $EFI_DIR ];then | ||
86 | mount -t efivarfs none /sys/firmware/efi/efivars | ||
87 | fi | ||
88 | |||
84 | # populate bootparam environment | 89 | # populate bootparam environment |
85 | for p in `cat /proc/cmdline`; do | 90 | for p in `cat /proc/cmdline`; do |
86 | opt=`echo $p | cut -d'=' -f1` | 91 | opt=`echo $p | cut -d'=' -f1` |