diff --git a/lib/setup.c b/lib/setup.c index a4d79143..00a18d06 100644 --- a/lib/setup.c +++ b/lib/setup.c @@ -5565,7 +5565,10 @@ static int _verify_key(struct crypt_device *cd, r = KEY_VERIFIED; else if (isBITLK(cd->type)) r = KEY_VERIFIED; - else + else if (isFVAULT2(cd->type)) { + if (vk && vk->keylength == FVAULT2_volume_key_size()) + r = KEY_VERIFIED; + } else log_err(cd, _("Device type is not properly initialized.")); if (r >= KEY_VERIFIED)