Can I choose partition name for luks encrypted btrfs while installing with Anaconda?

Anaconda uses LUKS-UUID name for an encrypted partition when installing. I would like to choose a custom name (not label) for that partition or, at least some hint for changing them if it is the root and the home partition as I can’t umount them while in use. Or can I?

I am not very experienced with Linux. But I am trying to build a very robust fedora Workstation PC on a Surface 9 Pro. That includes btrfs encrypted partitions, snapshots and ssh backups. That is why I need a more “human friendly” luks-PartitionName.

I would appreciate any suggestions / solutions.

Hi and welcome to :fedora: !

I haven’t tested this myself, so better perform it on a fresh system that you’re willing to reinstall if something goes wrong, but I imagine the following steps (performed after the fresh install) might work:

  • change the mapper name of the luks device by editing /etc/crypttab
  • regenerate initramfs with sudo dracut --force
  • reboot.

Thank you Mike B.

Will try ASAP and feed back with results. Good or bad U^^

Just came back from reboot. Your solution worked flawlessly. Thank you Mike B.

You’re welcome. Happy to hear it worked.