Skip to content

Commit

Permalink
luks: move dracut out of systemd directory
Browse files Browse the repository at this point in the history
Prepare to decouple dracut and systemd unlockers.
  • Loading branch information
sergio-correia committed Jan 17, 2024
1 parent ec16c7a commit cfefdde
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ install() {
if dracut_module_included "systemd"; then
inst_multiple \
$systemdsystemunitdir/clevis-luks-askpass.service \
$systemdsystemunitdir/clevis-luks-askpass.path
$systemdsystemunitdir/clevis-luks-askpass.path \
@SYSTEMD_REPLY_PASS@ \
@libexecdir@/clevis-luks-askpass

systemctl -q --root "$initdir" add-wants cryptsetup.target clevis-luks-askpass.path
else
inst_hook initqueue/online 60 "$moddir/clevis-hook.sh"
Expand All @@ -36,8 +39,6 @@ install() {

inst_multiple \
/etc/services \
@SYSTEMD_REPLY_PASS@ \
@libexecdir@/clevis-luks-askpass \
clevis-luks-common-functions \
grep sed cut \
clevis-decrypt \
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions src/luks/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ clevis_luks_unbind = configure_file(input: 'clevis-luks-unbind.in',

if libcryptsetup.found() and luksmeta.found()
subdir('systemd')
# systemd should come before dracut in order to set up
# variables like SYSTEMD_REPLY_PASS.
subdir('dracut')
subdir('udisks2')

bins += clevis_luks_unbind
Expand Down
1 change: 0 additions & 1 deletion src/luks/systemd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sd_reply_pass = find_program(

if systemd.found() and sd_reply_pass.found()
data.set('SYSTEMD_REPLY_PASS', sd_reply_pass.path())
subdir('dracut')

unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')

Expand Down

0 comments on commit cfefdde

Please sign in to comment.