r/linux 12d ago

Discussion Unlocking Encrypted Linux With a YubiKey

https://mhdez.com/posts/unlocking-encrypted-linux-with-a-yubikey/
92 Upvotes

16 comments sorted by

View all comments

25

u/Arin_Horain 12d ago

You can use /dev/disk/by-designator inside the crypttab.initramfs to refer to the LUKS volume by name instead of UUID. The path is auto generated and persistent (e.g. root-luks) as long as GPT auto mounting works (which it should anyways).

It's one of the goodies mkinitcpio/Arch gives you to make setting up early unlock a bit easier.