Please note that luksFormat and luksAddKey take a key-file as a second
argument, so --key-file is not necessary, just specify the key-file
directly. Further, the name ("swap_crypt") does not need to be provided
for these two commands .. it doesn't make sense in that context anyway.
That's actually what causes the failure above, since cryptsetup
interprets "swap_crypt" as the name of the keyfile.

In short, just use the following line instead:

cryptsetup luksFormat /dev/md1 /etc/keys/dm-crypt/swap_crypt.key

That should do. Bug should be closed.

You might also consider using either a randomized key for swap or
deriving the key for that from your key for the root partition (using
the decrypt_derived script, in genuine Debian at least).

-- 
cryptsetup luksFormat can't find key file with a period in name
https://bugs.launchpad.net/bugs/183413
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to