openSUSE / disk-encryption-tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The encryption password is always the root password, the user input is ignored

aafeijoo-suse opened this issue · comments

While testing the MicroOS image specified in https://bugzilla.suse.com/show_bug.cgi?id=1218068#c23, I set an encryption password different than the root password, but the system was encrypted using the root password anyway.

Maybe the following line is wrong and it should use $crypt_pw instead of $password?

echo -n "$password" | run cryptsetup luksAddKey --verbose --batch-mode --force-password --key-file <(keyctl pipe "$crypt_keyid") "$dev"

damn. right