Commit 8f350f9b authored by Milan Broz's avatar Milan Broz

Print error message if crypt_load() detects unsupported version of LUKS.

parent 484692aa
......@@ -782,8 +782,11 @@ static int _crypt_load_luks(struct crypt_device *cd, const char *requested_type,
* perform repair.
r = _crypt_load_luks2(cd, cd->type != NULL, repair);
} else
} else {
if (version > 2)
log_err(cd, _("Unsupported LUKS version %d."), version);
r = -EINVAL;
crypt_memzero(&hdr, sizeof(hdr));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment