diff --git a/src/luks/systemd/meson.build b/src/luks/systemd/meson.build index eda879b4..3f10f3d9 100644 --- a/src/luks/systemd/meson.build +++ b/src/luks/systemd/meson.build @@ -1,6 +1,8 @@ systemd = dependency('systemd', required: false) +systemdutildir = systemd.found() ? systemd.get_pkgconfig_variable('systemdutildir', default: '') : '' sd_reply_pass = find_program( + (systemdutildir != '') ? join_paths(systemdutildir, 'systemd-reply-password') : '', join_paths(get_option('prefix'), get_option('libdir'), 'systemd', 'systemd-reply-password'), join_paths(get_option('prefix'), 'lib', 'systemd', 'systemd-reply-password'), join_paths('/', 'usr', get_option('libdir'), 'systemd', 'systemd-reply-password'),