I would like to have my encrypted root partition mapped to the device mapper name system
, i.e. it should eventually appear under /dev/mapper/system
. My operating system is Fedora 24 Workstation Linux and it boots with Grub2 on an UEFI enabled computer.
The kernel already correctly identifies the encrypted root partition by UUID having had Fedora configured it with the kernel parameter rd.luks.uuid=luks-144255e7-7a9a-4957-ad6e-d4a2a71c861a
during installation.
With the kernel parameter rd.luks.uuid
configured as above the encrypted root partition gets mapped by the same device mapper name as the kernel parameter value, i.e. appears under /dev/mapper/luks-144255e7-7a9a-4957-ad6e-d4a2a71c861a
.
After reading the manpage of systemd-cryptsetup-generator
I think its kernel parameter rd.luks.name
is the appropriate one to choose another device mapper name; other than what would be configured with rd.luks.uuid
alone.
Unfortunately Grub2 neither seems to consider rd.luks.name=luks-144255e7-7a9a-4957-ad6e-d4a2a71c861a=system
nor rd.luks.name=144255e7-7a9a-4957-ad6e-d4a2a71c861a=system
(without the luks-
prefix).
Have you got an idea how to get the encrypted root partition mapped under /dev/mapper/system
?