From: Lennart Poettering Date: Mon, 24 Nov 2025 08:41:36 +0000 (+0100) Subject: core: load libcryptsetup before forking off child that might need it X-Git-Tag: v259-rc2~34^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9252e26f4cbf92428cab595045716fee783f375e;p=thirdparty%2Fsystemd.git core: load libcryptsetup before forking off child that might need it --- diff --git a/src/core/meson.build b/src/core/meson.build index 2aa47f548bc..c7beb8742ad 100644 --- a/src/core/meson.build +++ b/src/core/meson.build @@ -134,6 +134,7 @@ libcore_static = static_library( c_args : ['-fvisibility=default'], dependencies : [libaudit_cflags, libbpf_cflags, + libcryptsetup_cflags, libdl, libm, libmount_cflags, diff --git a/src/core/service.c b/src/core/service.c index a9d90354b69..12f4733274c 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -14,6 +14,7 @@ #include "bus-error.h" #include "bus-util.h" #include "chase.h" +#include "cryptsetup-util.h" #include "dbus-service.h" #include "dbus-unit.h" #include "devnum-util.h" @@ -5552,6 +5553,8 @@ static int service_live_mount( u->id); } + (void) dlopen_cryptsetup(); + service_unwatch_control_pid(s); s->live_mount_result = SERVICE_SUCCESS; s->control_command = NULL;