From 4fc81301b442c4c6b336600823fd4ef385691c28 Mon Sep 17 00:00:00 2001 From: Laszlo Gombos Date: Fri, 11 Oct 2024 23:26:58 -0400 Subject: [PATCH] luks: make sure cryptsetup.target is installed --- src/luks/dracut/clevis/module-setup.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/luks/dracut/clevis/module-setup.sh.in b/src/luks/dracut/clevis/module-setup.sh.in index 50547a52..55f32818 100755 --- a/src/luks/dracut/clevis/module-setup.sh.in +++ b/src/luks/dracut/clevis/module-setup.sh.in @@ -21,7 +21,7 @@ depends() { local __depends=crypt if dracut_module_included "systemd"; then - __depends=$(printf '%s systemd' "${__depends}") + __depends=$(printf '%s systemd-cryptsetup' "${__depends}") fi echo "${__depends}" return 255 @@ -32,6 +32,7 @@ install() { inst_multiple \ $systemdsystemunitdir/clevis-luks-askpass.service \ $systemdsystemunitdir/clevis-luks-askpass.path \ + $systemdsystemunitdir/cryptsetup.target \ @SYSTEMD_REPLY_PASS@ \ @libexecdir@/clevis-luks-askpass