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: 472 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 |
|
|
|