Talk:Dracut
From Gentoo Wiki
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
~~~~
), and indent successive comments with colons (:
).
Add new sections at the bottom of the page, under a heading (== ==
). Please remember to mark sections as "open for discussion" using {{talk|open}}
, so they will show up in the list of open discussions.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