From: Lennart Poettering Date: Tue, 1 Jun 2021 11:19:23 +0000 (+0200) Subject: dissect: the libcryptsetup code for Verity crypt_device objects too X-Git-Tag: v249-rc1~121^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c719805ecb713aff57a67b66bf36a052392201ef;p=thirdparty%2Fsystemd.git 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. --- 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");