-
Notifications
You must be signed in to change notification settings - Fork 151
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
Add support for ISO boot via systemd-boot #2390
Conversation
To build a live ISO image that boots via systemd perform the following actions
To boot the resulting image call
|
So far so good but this PR has a major issue, which is currently documented in the following NOTE:
|
due to this issue we cannot merge this pull request and further investigations are needed if it is at all possible to include an embedded EFI partition of this size as El Torito boot. I got the information that systemd-boot will not gain native support for reading from an ISO9660 filesystem like e.g grub can do. Thus I'm hitting a limitation for which I don't have a good solution at the moment. |
d7382d1
to
9578e51
Compare
Create proper EFI FAT image via bootctl to be used as alt loader in xorriso. This allows to boot the ISO via EFI e.g kvm -bios /usr/share/qemu/ovmf-x86_64.bin -cdrom file.iso Please note, hybrid boot is done via grub's hybrid MBR and as systemd-boot does not provide one, hybrid boot is out of scope yet. This Fixes #2281
9578e51
to
d6d57ea
Compare
Add runtime check for to check that the efifatimagesize does not exceed the max El Torito load size
kernel-install does a lot more then making the kernel available to the ESP. It calls dracut, it creates loader entries and all that is unexpected and also breaks the boot because the way dracut is called in the image build case where host != target leads to broken results. This commit refactors the systemd-boot support in kiwi to prevent the use of kernel-install
I opened the PR for review as I think it can be merged because it fixes the systemd-boot setup in kiwi and also allows building bootable ISOs with systemd. The limitation of the ESP size is set on El Torito boot-load-size and I added a runtime check to check this condition such that users don't run into issues. This still leaves the problem that the systemd-boot ESP grows beyond the size limitation of El Torito loader entries but it should not hold us back from merging the changes proposed to kiwi here. Thanks |
Create proper EFI FAT image via bootctl to be used as alt loader in xorriso. This allows to boot the ISO via EFI e.g kvm -bios /usr/share/qemu/ovmf-x86_64.bin -cdrom file.iso Please note, hybrid boot is done via grub's hybrid MBR and as systemd-boot does not provide one, hybrid boot is out of scope yet. This Fixes #2281