Hello, I've looked online in various places for an answer to this question, but have not found anything that works. If this has been addressed, please feel free to point me to the correct URL.
I am creating a custom installer to install the OS. I am modifying the init-install-efi.sh script to include efibootmgr. I have a bbappend for core-image-minimal-initramfs that has PACKAGE_INSTALL:append = " efibootmgr efivar " When I run my installer and it tries running the efibootmgr command, I get EFI variables are not supported on this system. It looks like the kernel-module-efivarfs is not included in the initramfs image. If I try to add it as a PACKAGE_INSTALL:append or RDEPENDS:${PN}:append statement or similar, the build fails with dnf error message of not being able to find the kernel-module-efivarfs package. The output of "zcat /proc/config.gz | grep EFI" when the install-efi.sh script is running is as follows: CONFIG_EFI=y CONFIG_EFI_STUB=y # CONFIG_EFI_MIXED is not set CONFIG_EFI_PARTITION=y CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y # EFI (Extensible Firmware Interface) Support CONFIG_EFI_VARS=m CONFIG_EFI_ESRT=y CONFIG_EFI_RUNTIME_MAP=y # CONFIG_EFI_FAKE_MEMMAP is not set CONFIG_EFI_RUNTIME_WRAPPERS=y CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y # CONFIG_EFI_BOOTLOADER_CONTROL is not set # CONFIG_EFI_CAPSULE_LOADER is not set # CONFIG_EFI_TEST is not set # CONFIG_EFI_RCI2_TABLE is not set # CONFIG_EFI_DISABLE_PCI_DMA is not set # end of EFI (Extensible Firmware Interface) Support CONFIG_EFI_EARLYCON=y CONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y # CONFIG_PINCTRL_LAKEFIELD is not set CONFIG_FB_EFI=y CONFIG_EFIVAR_FS=y # CONFIG_EFI_PGT_DUMP is not set I have the following layers in the following order in my bblayers.conf file: * poky/meta * poky/meta-poky * meta-intel * meta-lewism * meta-openembedded/meta-oe * poky/meta-yocto-bsp I am not doing anything with meta-secure-core at this time, but if that is needed, I can add it. In my local.conf file I have the following: MACHINE = "intel-corei7-64" MACHINE_FEATURES:append = " efi " MACHINE_FEATURES_NATIVE:append = " efi " DISTRO = "mydistro" INITRAMFS_IMAGE = "core-image-minimal-initramfs" IMAGE_FSTYPES = "live" I have also added the following to my initramfs-module-install-efi_%.bbappend file: DEPENDS:append = " efibootmgr efivar " RDEPENDED:${PN}:append = " efibootmgr efivar " So, how do I get just kernel-module-efivarfs into my initramfs? TIA, Lewis Muhlenkamp Follow this link to read our Privacy Statement<https://www.stryker.com/content/stryker/gb/en/legal/global-policy-statement.html/>
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63894): https://lists.yoctoproject.org/g/yocto/message/63894 Mute This Topic: https://lists.yoctoproject.org/mt/108666271/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-