On Fri, 8 Jul 2022 at 07:25, Piscium <grok...@gmail.com> wrote: > On Wed, 6 Jul 2022 at 03:19, Piscium <grok...@gmail.com> wrote:
> > I won't bother changing the name, I was just curious. > > In the end I changed the name of the LUKS partition. It was easy. I am > posting here the commands in case someone else is interested. > > As root: > 1. dmsetup rename /dev/mapper/oldname newname > 2. edit /etc/crypttab, replace oldname with newname > 3. update-initramfs -k all -u > 4. reboot Oh wow, that's great. I was not aware of 'dmsetup rename'. Before that, the only way I had found to rename the opened LUKS volume involved closing it, which is obviously trickier given that it contains the running operating system. Thank you very much for sharing that information. It's my understanding that the name in question is just a string that sits in /etc/crypttab to provide the <name> used by cryptsetup open <device> <name> command. The tricky part is that this command does occur in the initrd, becaue the the root filesystem must be decrypted before it is provided to the kernel command line.