Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ukis generated by installkernel are not proper ukis?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Tue May 07, 2024 8:07 am    Post subject: ukis generated by installkernel are not proper ukis? Reply with quote

I use installkernel with as use flags systemd, systemd-boot, uki, and ukify. This works well when booting (using systemd-boot as bootloader). However, bootctl thinks that my ukis are not ukis:
Code:
$ bootctl list
Parsed PE file '/boot/EFI/Linux/<machine-id>-6.6.21-gentoo-g.efi' is not a UKI.
Parsed PE file '/boot/EFI/Linux/<machine-id>-6.6.30-gentoo-a.efi' is not a UKI.
Parsed PE file '/boot/EFI/Linux/<machine-id>-6.6.30-gentoo-b.efi' is not a UKI.

What could be the matter?
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 78

PostPosted: Thu May 09, 2024 10:00 pm    Post subject: Reply with quote

systemd only recognizes UKIs as such if they contain an initrd, wether it is actually needed or not. You can enable automatic initrd generation by building installkernel with USE=dracut.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Fri May 10, 2024 7:54 am    Post subject: Reply with quote

xgivolari wrote:
systemd only recognizes UKIs as such if they contain an initrd, wether it is actually needed or not. You can enable automatic initrd generation by building installkernel with USE=dracut.

Thank you for the information. Indeed, I do not use an initrd. (And I do not want to use one.) Is this bug/disfunctionality described or reported somewhere?
Back to top
View user's profile Send private message
xgivolari
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2021
Posts: 78

PostPosted: Fri May 10, 2024 8:09 am    Post subject: Reply with quote

There's in fact an upstream bug about that, which has been addressed already. Seems like the initrd requirement for UKIs is no longer present: (commit)

I think this should be solved with the release of systemd-256 at the latest.
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Fri May 10, 2024 1:31 pm    Post subject: Reply with quote

xgivolari wrote:
There's in fact an upstream bug about that, which has been addressed already. Seems like the initrd requirement for UKIs is no longer present: (commit)

I think this should be solved with the release of systemd-256 at the latest.

This seems positive. However, the commit is for the specification, not for bootctl code. There may be changes to bootctl code, but that is not clear to me. I've suggested a further fix to the specifications, but they may still (think they) require a kernel boot line (mine is embedded in the kernel itself).
Back to top
View user's profile Send private message
equaeghe
l33t
l33t


Joined: 22 Feb 2005
Posts: 644

PostPosted: Thu May 16, 2024 4:45 am    Post subject: Reply with quote

There wasn't yet any change in systemd code. However, I asked nicely, and now it seems a change fixing this will be included in v256.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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