mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-17 13:50:06 +01:00
Print error message in cryptetup cli.
Prints "Volume key does not match the volume" when passed VK's digest does match the stored one.
This commit is contained in:
committed by
Milan Broz
parent
79d8a8b840
commit
723ad6afdf
@@ -1911,6 +1911,8 @@ static int action_open_luks(void)
|
||||
goto out;
|
||||
r = crypt_activate_by_keyslot_context(cd, activated_name, CRYPT_ANY_SLOT, kc1, CRYPT_ANY_SLOT, kc2, activate_flags);
|
||||
}
|
||||
if (r == -EPERM)
|
||||
log_err(_("Volume key does not match the volume."));
|
||||
if (r)
|
||||
goto out;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user