Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/luks/systemd/clevis-luks-askpass.path
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[Unit]
Description=Clevis systemd-ask-password Watcher
Before=remote-fs-pre.target
Wants=remote-fs-pre.target
DefaultDependencies=no
Conflicts=shutdown.target
Before=basic.target shutdown.target remote-fs-pre.target

[Path]
PathChanged=/run/systemd/ask-password
Expand Down
4 changes: 3 additions & 1 deletion src/luks/systemd/clevis-luks-askpass.service.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=Clevis LUKS systemd-ask-password Responder
Requires=network-online.target
DefaultDependencies=no
Conflicts=shutdown.target
Before=systemd-ask-password-console.service systemd-ask-password-plymouth.service shutdown.target
After=network-online.target

[Service]
Expand Down
2 changes: 0 additions & 2 deletions src/luks/systemd/dracut/clevis/clevis-hook.sh.in

This file was deleted.

7 changes: 0 additions & 7 deletions src/luks/systemd/dracut/clevis/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ if dracut.found()
install_dir: dracutdir,
configuration: data,
)

configure_file(
input: 'clevis-hook.sh.in',
output: 'clevis-hook.sh',
install_dir: dracutdir,
configuration: data,
)
else
warning('Will not install dracut module due to missing dependencies!')
endif
9 changes: 4 additions & 5 deletions src/luks/systemd/dracut/clevis/module-setup.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ depends() {
}

install() {
inst_hook initqueue/online 60 "$moddir/clevis-hook.sh"
inst_hook initqueue/settled 60 "$moddir/clevis-hook.sh"

inst_multiple \
/etc/services \
"$systemdsystemunitdir/clevis-luks-askpass.path" \
"$systemdsystemunitdir/clevis-luks-askpass.service" \
/etc/services \
@libexecdir@/clevis-luks-askpass \
clevis-decrypt \
cryptsetup \
Expand All @@ -38,5 +37,5 @@ install() {
jose \
ncat

dracut_need_initqueue
systemctl -q --root "$initdir" add-wants sysinit.target clevis-luks-askpass.path
}