]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: downgrade dlopen not compiled message to debug
authorLuca Boccassi <luca.boccassi@gmail.com>
Tue, 2 Dec 2025 14:16:27 +0000 (14:16 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 2 Dec 2025 16:52:24 +0000 (16:52 +0000)
Every other log in this function is debug level, so downgrade this too.
Otherwise compiling without libcryptsetup means sd-executor logs at
error level when starting any service, regardless of whether it is
needed or not.

Fixes https://github.com/systemd/systemd/issues/39968

Follow-up for efaf5a763d6a06645dba8e88ebc15e887d59cbef

src/shared/cryptsetup-util.c

index 19ded39cc98a6c197c37438fc17c31c67f22954d..7f5ab38ef8c59e2aeb31b9cb0caae902bee2b0ce 100644 (file)
@@ -298,7 +298,7 @@ int dlopen_cryptsetup(void) {
 
         return 1;
 #else
-        return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "cryptsetup support is not compiled in.");
+        return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "cryptsetup support is not compiled in.");
 #endif
 }