Talk:Dracut

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
== Discussion title ==

{{Talk|date = 2024-05-13}}

A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 08:56, 28 May 2024 (UTC)
:: Your reply ~~~~

rd.luks.name in cmdline

Talk status
This discussion is still ongoing.

When dracut decrypts a LUKS-encrypted volume it expects /etc/crypttab to contain its name [1]. However, this file is not used by OpenRC [2] and duplicating configs just for dracut can be wasteful.

A short solution would be to add to dracut.conf:

kernel_cmdline="rd.luks.name=<crypto_LUKS UUID>=root root=/dev/mapper/root"

This way, UUID is only mentioned once. Contrary to [3] this works (I use it). However, rd.luks.name is documented for systemd [4], but not for dracut. Can I add this as a small "LUKS" section for OpenRC people?

[1] https://bugs.gentoo.org/show_bug.cgi?id=592686 (comment #11)
[2] https://forums.gentoo.org/viewtopic-p-8788256.html (post #2)
[3] https://github.com/dracutdevs/dracut/issues/1566
[4] https://www.freedesktop.org/software/systemd/man/latest/systemd-cryptsetup-generator.html

UncleTed (talk) 14:30, 3 January 2024 (UTC)