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:
Ondrej Kozina
2025-05-09 10:45:31 +02:00
committed by Milan Broz
parent 79d8a8b840
commit 723ad6afdf

View File

@@ -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 {