View previous topic :: View next topic |
Author |
Message |
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 318
|
Posted: Sun Jan 26, 2025 1:57 am Post subject: uki_generator=dracut is ineffective |
|
|
Hi,
I am trying to set up my boot system to use Darcut and UKI. I configured the install.conf by following https://wiki.gentoo.org/wiki/Unified_kernel_image#Dracut.
Then, I executed the following:
Code: | sudo emerge --config '=sys-kernel/gentoo-kernel-bin-6.6.67:6.6.67' |
At the beginning of the log, I found this message:
Code: | layout=grub set via config
INITRD_GENERATOR (dracut) set via config.
UKI_GENERATOR (none) set via config.
Loaded config. |
I guess that indicates the scripts won't try to create the uki files for me. Eventually, my "/boot" directory layout is as the following:
Code: |
/boot
├── .keep
├── EFI
│ ├── Boot
│ ├── Dell
│ ├── gentoo
│ └── Microsoft
├── grub
│ ├── fonts
│ ├── grub.cfg
│ ├── grubenv
│ ├── locale
│ ├── themes
│ └── x86_64-efi
├── initramfs-6.6.67-gentoo-dist.img
├── kernel-6.6.67-gentoo-dist
|
I use "grub" for the bootloader, and I am confused about the https://wiki.gentoo.org/wiki/Unified_kernel_image#GRUB section. Does it mean I need to create and update the grub entry manually?
I checked https://wiki.gentoo.org/wiki/Dracut, but it doesn't mention UKI at all.
I am using installkernel-48-r1 with "dracut grub systems uki" flags; my grub platform is efi-64.
Thanks _________________ David Shen |
|
Back to top |
|
|
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 318
|
Posted: Sun Jan 26, 2025 2:15 am Post subject: |
|
|
My bad, the uki generator value is overridden in /etc/kernel/install.conf.
Now the installkernel log says it is using dracut as the uki generator.
But in the end, I still don't have a file like "/EFI/Linux/8e6dfbd2da15a3abb3e1a5a862dd78f3-6.11.3.efi" in my system that I can use to configure the grub.cfg file.
I am using dracut-103-r4 with default use flags. _________________ David Shen |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 473 Location: Nijmegen
|
Posted: Sun Jan 26, 2025 10:36 am Post subject: |
|
|
davidshen84 wrote: |
But in the end, I still don't have a file like "/EFI/Linux/8e6dfbd2da15a3abb3e1a5a862dd78f3-6.11.3.efi" in my system that I can use to configure the grub.cfg file.. |
Please share the full log from: emerge --config gentoo-kernel-bin
UKI support in GRUB is incomplete: https://bugs.gentoo.org/942201 There's a grub-mkconfig script in that bug report that should help though.
I recommend choosing a different bootloader. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 318
|
Posted: Sun Jan 26, 2025 10:46 pm Post subject: |
|
|
dracut.log: https://paste.gentoo.zip/7QdFNbLm
installkernel.log: https://paste.gentoo.zip/GW0AH9DL
Should I use systemd-boot instead?
But even if I choose systemd-boot, I still need Dracut to generate the UKI files for me, right?
In the log, I can see:
Code: | I: Executing: /usr/bin/dracut -f --verbose --kernel-image /usr/src/linux-6.6.67-gentoo-dist/arch/x86/boot/bzImage --uefi --kver 6.6.67-gentoo-dist /tmp/kernel-install.staging.fA2wGt/uki.efi |
So, it looks like Dracut tried to generate the UKI file, but in the end, it is nowhere to be found, or maybe it is grub that failed to pick it up. _________________ David Shen |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 473 Location: Nijmegen
|
Posted: Mon Jan 27, 2025 9:14 am Post subject: |
|
|
Your log says that you are still overriding the install.conf via /etc/kernel, and setting there the grub layout. If you want to use UKIs you'll need to use the uki layout which the uki USE flag will set for you. Please remove your manual override, and let the package take care of the configuration.
GRUB has no upstream support for finding and booting UKIs, it can be made to work via a set of patches and a custom hook for grub-mkconfig, but you'll have an easier time with systemd-boot or refind, or if supported by your UEFI you can boot them without a bootloader (efistub). _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|