anatol / booster

Fast and secure initramfs generator
MIT License
505 stars 45 forks source link

Stuck at waiting for all modules to load #265

Open amanuel2 opened 3 months ago

amanuel2 commented 3 months ago

Building the linux kernel for 6.10.2 and trying to load it up via qemu gets me stuck at loading all the modules specifically this line: https://github.com/anatol/booster/blob/276a3efc4336e866e3944359ecd86658d6354eb9/init/main.go#L871

Not 100% if I'm correct though, so take this with a grain of salt.

Qemu Image:

image

Commands:

1) booster build --kernel-version 6.10.2 mybooster.img --force 
2) sudo qemu-system-x86_64 -m 1024M -hda hda.img -enable-kvm -initrd mybooster.img -kernel arch/x86_64/boot/bzImage -append "root=/dev/sda init=/init" -cpu host -smp cores=2 -nic user,hostfwd=tcp::2222-:22
anatol commented 3 months ago

When the boot is stuck most likely it means some of the modules needed to detect the root partition are missed.

There are a couple of things to debug this issue.

rebuild the image, and try to boot again. If the problem still persist - please share all logs ideally as a text.

Als see https://github.com/anatol/booster/blob/master/docs/manpage.md#debugging