Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 948675 - Ugrd fails to generate initramfs when triggered by installkernel: KeyError: '/dev/mapper/dm-1'
Summary: Ugrd fails to generate initramfs when triggered by installkernel: KeyError: '...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-01-24 21:14 UTC by arjones239
Modified: 2025-01-25 19:25 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 arjones239 2025-01-24 21:14:26 UTC
I'm trying to install gentoo with dist-kernel, using installkernel and ugrd to generate the initramfs. I'm seeing an error when installkernel triggers ugrd to create the initramfs. Here is the build log of linux-firmware, with the ugrd error at the end: https://paste.gentoo.zip/fV3m8dP8. Also, here is my /etc/ugrd/config.toml: https://paste.gentoo.zip/1OszcBEF. If I uncomment [cryptsetup.root] and specify the uuid in /etc/ugrd/config.toml, it complains that "ugrd.ValidationError: [root] LUKS uuid mismatch, found 7c9de988-7c14-484f-9e9d-a9e50cb36986', expected: daabca89-50b6-4df8-ac2a-83d8690872c0". The uuid it is expecting belongs to a member of a lvm volume that contains root, and is not root itself. Not sure how to proceed from here.
Comment 1 arjones239 2025-01-24 23:00:42 UTC
The new version of ugrd (from the live 9999 ebuild) fixes this issue.
Comment 2 Larry the Git Cow gentoo-dev 2025-01-25 19:25:25 UTC
The bug has been closed via the following commit(s):

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

commit 78e69b47dd63a1c3d9676af2e205f6aabb0a8f01
Author:     Zen <z@pyl.onl>
AuthorDate: 2025-01-25 00:15:54 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-01-25 19:21:55 +0000

    sys-kernel/ugrd: add 1.31.2
    
    Fixes an issue introduced in 1.30.1
    adds support for new installkernel hooks
    
    Closes: https://bugs.gentoo.org/948675
    Signed-off-by: Zen <z@pyl.onl>
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sys-kernel/ugrd/Manifest           |  1 +
 sys-kernel/ugrd/ugrd-1.31.2.ebuild | 73 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)