summaryrefslogtreecommitdiff
path: root/src/cryptenroll
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-06-01 13:16:47 +0200
committerLennart Poettering <lennart@poettering.net>2021-06-01 13:33:09 +0200
commit2f67864064d846c3d1bbbe58ab271c0a8fc83b12 (patch)
tree8ce153d8b336c9a0a019af0d8f842a3fe80a0aca /src/cryptenroll
parente9252faee90705f35d632022bf7e8a2a0e16a527 (diff)
downloadsystemd-2f67864064d846c3d1bbbe58ab271c0a8fc83b12.tar.gz
cryptsetup: explicitl set default log functions wherever needed
Code using libcryptsetup already sets the global log function if it uses dlopen_cryptsetup(). Make sure we do the same for the three programs that explicitly link against libcryptsetup and hence to not use dlopen_cryptsetup().
Diffstat (limited to 'src/cryptenroll')
-rw-r--r--src/cryptenroll/cryptenroll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptenroll/cryptenroll.c b/src/cryptenroll/cryptenroll.c
index 030296cc02..460e895a02 100644
--- a/src/cryptenroll/cryptenroll.c
+++ b/src/cryptenroll/cryptenroll.c
@@ -510,6 +510,8 @@ static int run(int argc, char *argv[]) {
if (r <= 0)
return r;
+ cryptsetup_enable_logging(NULL);
+
if (arg_enroll_type < 0)
r = prepare_luks(&cd, NULL, NULL); /* No need to unlock device if we don't need the volume key because we don't need to enroll anything */
else