Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 957110 - sys-kernel/gentoo-kernel-bin with generic-uki should support root on LUKS
Summary: sys-kernel/gentoo-kernel-bin with generic-uki should support root on LUKS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-06-04 00:06 UTC by zq
Modified: 2025-06-14 09:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zq 2025-06-04 00:06:24 UTC
It seems that the initrd in generic UKI does not contain systemd-cryptsetup and does not support root on LUKS. Can the initrd be built with necessary tools for this?
Perhaps systemd with the cryptsetup use flag?
Comment 1 zq 2025-06-09 21:28:01 UTC
Thanks for the PR. How can I test building a -bin package locally? Would like to confirm that it fixes my problems. Thanks again.
Comment 2 Nowa Ammerlaan gentoo-dev 2025-06-10 10:16:10 UTC
You could build your own sys-kernel/gentoo-kernel with USE=generic-uki enabled.
Comment 3 Larry the Git Cow gentoo-dev 2025-06-14 09:06:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7c42d994b1c54e9a66947bd2a7252a91f372bad

commit d7c42d994b1c54e9a66947bd2a7252a91f372bad
Author:     Nowa Ammerlaan <nowa@gentoo.org>
AuthorDate: 2025-06-06 10:15:23 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-06-14 09:06:15 +0000

    kernel-build.eclass: include systemd-cryptsetup in generic UKI
    
    Closes: https://bugs.gentoo.org/957110
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
    Part-of: https://github.com/gentoo/gentoo/pull/42471
    Closes: https://github.com/gentoo/gentoo/pull/42471
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 eclass/kernel-build.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Comment 4 Nowa Ammerlaan gentoo-dev 2025-06-14 09:08:21 UTC
Should be fixed when the next batch of binary builds is pushed. If it's still not working, please re-open this bug report and then we can figure out what is still missing to make this work.