diff --git a/generator/generator.go b/generator/generator.go index f21da7ee..b2e2c798 100644 --- a/generator/generator.go +++ b/generator/generator.go @@ -81,6 +81,7 @@ var defaultModulesList = []string{ "hid_generic", "sd_mod", "ahci", "sdhci", "sdhci_acpi", "sdhci_pci", "mmc_block", // mmc "nvme", "usb_storage", "uas", + "efivarfs", "virtio_pci", "virtio_blk", "virtio_scsi", "virtio_crypto", } diff --git a/init/main.go b/init/main.go index ebd5cd92..02f63e1b 100644 --- a/init/main.go +++ b/init/main.go @@ -684,6 +684,11 @@ func boost() error { // Mount efivarfs if running in EFI mode if _, err := os.Stat("/sys/firmware/efi"); !errors.Is(err, os.ErrNotExist) { + wg, err := loadModules("efivarfs") + if err != nil { + return err + } + wg.Wait() if err := mount("efivarfs", "/sys/firmware/efi/efivars", "efivarfs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV, ""); err != nil { return err }