Skip to content

Commit

Permalink
systemd: search for systemd-reply-password in dir specified by systemd
Browse files Browse the repository at this point in the history
This increases build compatibility between systems, like Debian 11 and
Debian 12.

Signed-off-by: Oldřich Jedlička <[email protected]>
  • Loading branch information
oldium committed Oct 5, 2024
1 parent 8dea190 commit f0bebbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/luks/systemd/meson.build
Original file line number Diff line number Diff line change
@@ -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'),
Expand Down

0 comments on commit f0bebbb

Please sign in to comment.