-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootable Ubuntu Image is often stuck at loading initrd #2715
Comments
Please provide more information. You give us hardly anything to work with, how exactly are you booting the image? What hardware or virtualization software are you using? Please give us something to work with. As it is this bug report is not actionable. |
Hi, I have attempted to boot the raw image on utm using emulation for mac silicon and also tried to dd it to a flash drive and boot from this on a physical device. I can confirm images I have built previously using v14 are working fine on both. The obvious upgrade from v14 to v22 (main) items I've ruled out as I do match the required packages for EFI boot as per your docs. The log is too large to add as a comment, but I include the systemd-boot log extract from the output below. Is there anything else I could provide which would be helpful to you ? ‣ Installing systemd-boot… Allocating group tables: 0/8192��������� ���������done /var/tmp/.#repart88fe9b9855d7c334 successfully formatted as ext4 (label "root-x86-64", uuid 1cfdce02-9cd9-42d2-b216-360c024076fb) Allocating group tables: 0/52����� �����done /var/tmp/.#repart88fe9b9855d7c334 successfully formatted as ext4 (label "root-x86-64", uuid d853d13a-3bd4-4a7c-be97-4df9ad725a48) |
In v14 we still built the initrd using dracut, we've since switched to building the initrd with mkosi itself. So your issue is likely caused by the mkosi initrd including all kernel modules and firmware that is installed in the image. We have to include all modules and firmware because we do not know where the image will be installed. Search the documentation for "KernelModules" to find the settings that allow you to exclude specific modules (and any firmware they require) from the initrd built by mkosi. |
This makes sense, I will look into the modules and report back. |
Hi, I have some new information. When looking at the generated ESP Partition I notice that the loader.conf is actually empty and no entries exist in the entries dir. loader.conf |
That's because we build unified kernel images. Those will be in |
This is not actually a issue or bug. I needed to match all the required kernel modules and firmware. |
mkosi commit the issue has been seen with
main
Used host distribution
Ubuntu Jammy Jellyfish
Used target distribution
Ubuntu Focal
Linux kernel version used
5.15.0-107-generic
CPU architectures issue was seen on
None
Unexpected behaviour you saw
The image is halting for an excess of 5 minutes at the load of initrd before progressing and eventually loading.
Used mkosi config
mkosi output
No response
The text was updated successfully, but these errors were encountered: