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

This commit is contained in:
Lennart Poettering
2025-11-24 09:41:36 +01:00
parent c64a486058
commit 9252e26f4c
2 changed files with 4 additions and 0 deletions

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,

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;