You are not logged in.
Hi all,
I tried to setup a two-factor encrypted root using LUKS/dm-crypt after reading e.g. masarlabs.com/article/two-factor-luks-decription.
This Arch wiki article says crypttab cannot be used to unlock root.
Is the whole keyscript thing specific to Debian/Ubuntu or is there any way to get this done running Arch?
Someone asked the same (or at least a very similar thing) four years ago, but didn't get any replies.
Thanks!
Last edited by float (2014-11-19 17:30:59)
Offline
Yes, the "keyscript" is from debian patches to dm-crypt/cryptsetup. You cannot use it here.
But you can patch mkinitcpio, the wiki has some examples. Also a pointer is eworm's yubikey package: https://aur.archlinux.org/packages/mkinitcpio-ykfde/
Offline
Thanks for the hint!
This post kind of solves the problem.
Detaching the LUKS header results in two factor authentication so I don't need the keyfile anymore.
Actually it's even better because a detached LUKS header allows deniability.
Offline
Did you find this wiki page? https://wiki.archlinux.org/index.php/Dm … UKS_header
I have used it to success.
Offline
I used a slightly different approach because I didn't like the hard-coded path (/boot/header.img) in the encrypt hook.
The problem was also discussed in this thread in the meantime.
Based on the answers I filed a feature request and supplied a patch.
If you like it please vote for it so it gets some attention.
Offline