From: Lennart Poettering Date: Mon, 24 Nov 2025 08:55:46 +0000 (+0100) Subject: pid1: pull in libmount unconditionally X-Git-Tag: v259-rc2~34^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6069de1ed34735482dc63ba7431f605b858ea719;p=thirdparty%2Fsystemd.git pid1: pull in libmount unconditionally --- diff --git a/src/core/main.c b/src/core/main.c index d7651d0df98..f4acdb02c6c 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -59,6 +59,7 @@ #include "killall.h" #include "kmod-setup.h" #include "label-util.h" +#include "libmount-util.h" #include "limits-util.h" #include "load-fragment.h" #include "log.h" @@ -3310,6 +3311,12 @@ int main(int argc, char *argv[]) { goto finish; } + r = dlopen_libmount(); + if (r < 0) { + error_message = "Failed to load libmount.so"; + goto finish; + } + r = initialize_runtime(skip_setup, first_boot, &saved_rlimit_nofile, diff --git a/src/core/meson.build b/src/core/meson.build index 10a7ae2f8cd..2aa47f548bc 100644 --- a/src/core/meson.build +++ b/src/core/meson.build @@ -133,6 +133,7 @@ libcore_static = static_library( implicit_include_directories : false, c_args : ['-fvisibility=default'], dependencies : [libaudit_cflags, + libbpf_cflags, libdl, libm, libmount_cflags, @@ -200,6 +201,7 @@ executables += [ 'dependencies' : [ libapparmor_cflags, libkmod_cflags, + libmount_cflags, libseccomp_cflags, libselinux_cflags, ],