-
Notifications
You must be signed in to change notification settings - Fork 400
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
Prefer XBOOTLDR to ESP when installing unified kernel images. #1995
Comments
I just ran into this :) I'm using Unified Kernel Images. (My end goal is to encrypt my rootfs with LUKS and store the key in the machine's TPM. For that, I need to use SecureBoot to protect the boot chain, and I understand that UKI is a good way to achieve that.) The machine is a dual boot machine, and Windows has created a 100 MB ESP partition. I have therefore created a separate XBOOTLDR partition. They are respectively mounted on It looks like dracut systematically installs UEFI images to the ESP partition (if it detects that https://github.com/dracutdevs/dracut/blob/master/dracut.sh#L1125 That's problematic if the ESP partition is too small, because Unified Kernel Images tend to be pretty big, especially when adding e.g. a recovery image too. I've tried to move the image (from This is my first time using dracut; so perhaps I'm doing something wrong - I'm happy to hear what others think before trying to suggest a PR. :) |
@jpetazzo Thanks for your detailed use case, it makes sense to try to fix this. |
Use the new functions `get_dollar_boot`, `get_machine_id` and `get_default_initramfs_image` to get the `outfile` path. Fixes dracutdevs#1995
Use the new functions `get_dollar_boot`, `get_machine_id` and `get_default_initramfs_image` to get the `outfile` path. Fixes dracutdevs#1995
Use the new functions `get_dollar_boot`, `get_machine_id` and `get_default_initramfs_image` to get the `outfile` path. Fixes dracutdevs#1995
Use the new functions `get_dollar_boot`, `get_machine_id` and `get_default_initramfs_image` to get the `outfile` path. Fixes dracutdevs#1995
When installing unified kernel images images (uefi=yes) dracut currently searches
/efi
,/boot/efi
and/boot
to determine where the ESP is mounted. I suggest that the install location be instead queried bybootctl -x
in order to also support a possible XBOOTLDR partition.The text was updated successfully, but these errors were encountered: