Having finally moved into the 21st century and used UUIDs in /etc/fstab instead of the traditional /dev/sda1 identification scheme I am now trying to do the same with cryptsetup. If I have an encrypted partition and I run blkid I find
Code:
/dev/sda1: UUID="a1dq2147-3133-278c-af0e-0b9a1b0a89c6" TYPE="crypto_LUKS"
In this case the partition was opened. If I close the partition and run blkid I find the same UUID. I normally open the partition with a command
Code:
cryptsetup luksOpen /dev/sda1 sda1
What I would like to do is to open it by specifying its UUID.
The man page for cryptsetup describes specifying the UUID at format time but I see nothing about opening a partition by UUID. I have searched on this subject and found several discussions of changing the assigned UUID but nothing about using the UUID to identify the partition during the mount process. Any advise?
TIA,
Ken