From c719805ecb713aff57a67b66bf36a052392201ef Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 1 Jun 2021 13:19:23 +0200 Subject: [PATCH] dissect: the libcryptsetup code for Verity crypt_device objects too Across the codebase we are pretty good at setting the per-crypt_device log functions once we allocated the object. But we forgot one case. Fix that. --- src/shared/dissect-image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index a8402c1dcd1..476e514c52e 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -1926,6 +1926,8 @@ static int verity_can_reuse( if (r < 0) return log_debug_errno(r, "Error opening verity device, crypt_init_by_name failed: %m"); + cryptsetup_enable_logging(cd); + r = sym_crypt_get_verity_info(cd, &crypt_params); if (r < 0) return log_debug_errno(r, "Error opening verity device, crypt_get_verity_info failed: %m"); -- 2.47.3