From 82a51f148c278a870c08063f0d65192565acdf5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Old=C5=99ich=20Jedli=C4=8Dka?= Date: Thu, 16 Apr 2026 22:13:07 +0200 Subject: [PATCH] dracut: fix running with v110 Dracut (#545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partinal revert of 0e3a8b60 ("dracut: fix running with pre-v103 Dracut") The installation of `cryptsetup.target` by Dracut was originally made by `00systemd`, later `10systemd`, but was removed in [v104][1]. The installation somehow worked, because before v104 and after v104 there always was a module installing `cryptsetup.target` before `clevis` was installed - `systemd-cryptsetup`, which was moved from `90systemd-cryptsetup` to `01systemd-cryptsetup` in v105 and moved to `11systemd-cryptsetup` in v108. According to that the version v104 was broken and now version v110 is broken again, because [v110][2] moved `systemd-cryptsetup` to `71systemd-cryptsetup`, which is installed after `50clevis`. Fix this mess by returning back the installation of `cryptsetup.target` into `50clevis` module. This fixes the following error during Dracut installation: ``` dracut[I]: *** Including module: clevis *** Failed to add dependency on unit: Unit cryptsetup.target does not exist ``` [1]: https://github.com/dracut-ng/dracut-ng/commit/ad520855113d99d7551a7ab6c19870736f72cbc4 [2]: https://github.com/dracut-ng/dracut-ng/commit/d7bdbbb702abcd9c141decd0160284ad22a8b253 Fixes: #545 Signed-off-by: Oldřich Jedlička --- src/luks/dracut/clevis/module-setup.sh.in | 1 + 1 file changed, 1 insertion(+) diff --git a/src/luks/dracut/clevis/module-setup.sh.in b/src/luks/dracut/clevis/module-setup.sh.in index ef8770da..eb389bf1 100755 --- a/src/luks/dracut/clevis/module-setup.sh.in +++ b/src/luks/dracut/clevis/module-setup.sh.in @@ -38,6 +38,7 @@ install() { inst_multiple \ $systemdsystemunitdir/clevis-luks-askpass.service \ $systemdsystemunitdir/clevis-luks-askpass.path \ + $systemdsystemunitdir/cryptsetup.target \ @SYSTEMD_REPLY_PASS@ \ @libexecdir@/clevis-luks-askpass