mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
Revert "cryptsetup: pass 0 as key size to crypt_activate_by_keyfile()"
This reverts commit 9402841ef1
.
This freezes boot-up when /dev/urandom is used as key source
This commit is contained in:
parent
811ad2b3a4
commit
1c1890bee6
@ -447,7 +447,7 @@ int main(int argc, char *argv[]) {
|
||||
argv[3]);
|
||||
|
||||
if (key_file)
|
||||
k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, 0, flags);
|
||||
k = crypt_activate_by_keyfile(cd, argv[2], CRYPT_ANY_SLOT, key_file, opt_key_size, flags);
|
||||
else {
|
||||
char **p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user