core: load libcryptsetup before forking off child that might need it

This commit is contained in:
Lennart Poettering
2025-11-24 11:56:47 +01:00
parent c64a486058
commit 9252e26f4c
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -134,6 +134,7 @@ libcore_static = static_library(
c_args : ['-fvisibility=default'],
dependencies : [libaudit_cflags,
libbpf_cflags,
libcryptsetup_cflags,
libdl,
libm,
libmount_cflags,
+3
View File
@@ -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;