anatol / booster

Fast and secure initramfs generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kernel panic in EFI system without efivarfs added to initramfs

lucaschamorrotuduri opened this issue · comments

Booster version: 0.9 (released in arch linux)
In an EFI system, init/main.go attempts to load the efivarfs module:

	if _, err := os.Stat("/sys/firmware/efi"); !errors.Is(err, os.ErrNotExist) {
		wg := loadModules("efivarfs")
		wg.Wait()
               ...
	}

If the module is not present in the initramfs, init crashes with: fatal all goroutines are asleep - deadlock! and the kernel panics
With the module present, the system boots normally.

Do you see any logs/warnings before the fatal all goroutines are asleep - deadlock! message?

Also, there were some changes related to the module loading error handling. Could you please try booster from master branch and see if the error persists?