mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
core: load libcryptsetup before forking off child that might need it
This commit is contained in:
@@ -134,6 +134,7 @@ libcore_static = static_library(
|
||||
c_args : ['-fvisibility=default'],
|
||||
dependencies : [libaudit_cflags,
|
||||
libbpf_cflags,
|
||||
libcryptsetup_cflags,
|
||||
libdl,
|
||||
libm,
|
||||
libmount_cflags,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user