You are not logged in.
My /etc/crypttab looks like this:
home /dev/sda2 /etc/myPwdIsHere
And I've created the password file using echo myPwd > /etc/myPwdIsHere.
Now, when I try to boot I first enter the password for my / partition, then when systemd tries to decrypt /home it says:
Failed to start Cryptography Setup for home.
[...]
systemctl status systemd-cryptsetup@home.service:
Set cipher [bla bla ...] Invalid passphrase.
I know for a fact that the password isn't wrong. So, what to do?
Edit:
So, here's what I did.
1. Create a keyfile
2. Add the keyfile to the partition using luksAddKey
3. Update /etc/crypttab to point to the keyfile
Last edited by snufkin (2012-09-23 12:28:09)
Offline
What if, instead of the path to password, you just type your password. Like so:
home /dev/sda2 theActualPasswordThinkPad :: ArchLinux :: AwesomeWM
Offline
path to a file signifies location of encrypted password, AFAIK. so either type the password in crypttab file or set the field to none (it'll ask for password during boot).
"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette
Offline
What if, instead of the path to password, you just type your password. Like so:
home /dev/sda2 theActualPassword
It ignores is and asks for the same password to be entered at boot.
path to a file signifies location of encrypted password, AFAIK. so either type the password in crypttab file or set the field to none (it'll ask for password during boot).
Oh, it does? How do you encrypt it in the correct format then? Password in the crypttab doesn't play nice with systemd, and entering it on boot is what I'm trying to avoid.
Offline
I've figured out that I have to point to a file (with absolute path) in /etc/crypttab, but when I do cryptsetup says the password is wrong.
Here's the full (relevant) journalctl log:
systemd-cryptsetup[293]: Invalid passphrase.
systemd-cryptsetup[293]: Set cipher aes, mode xts-plain, key size 512 bits for device /dev/sda3.
systemd-cryptsetup[293]: Invalid passphrase.
systemd-cryptsetup[293]: Too many attempts.
Do I have to store the password in a certain format? Plaintext is apparently not working.
Offline
writing the password directly into /etc/crypttab is not supported anymore.
maybe the problem is that when you do "echo myPwd > /etc/myPwdIsHere" you have a newline (\n) at the end of the file which systemd-cryptsetup could consider part of the password. Try "echo -n password > file".
if this doesn't either, create a keyfile from /dev/random and add it the luks device. this definitively should work.
Last edited by 65kid (2012-09-23 12:24:19)
Offline