Skip to content

dracut: fix running with v110 Dracut (#545)#549

Merged
sergio-correia merged 1 commit intolatchset:masterfrom
oldium:fix/missing_cryptsetup_target
Apr 17, 2026
Merged

dracut: fix running with v110 Dracut (#545)#549
sergio-correia merged 1 commit intolatchset:masterfrom
oldium:fix/missing_cryptsetup_target

Conversation

@oldium
Copy link
Copy Markdown
Contributor

@oldium oldium commented Apr 16, 2026

Partinal revert of 0e3a8b6 ("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. 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 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

Fixes: #545

Partinal revert of 0e3a8b6 ("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]: dracut-ng/dracut-ng@ad52085
[2]: dracut-ng/dracut-ng@d7bdbbb

Fixes: latchset#545

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
Copy link
Copy Markdown
Collaborator

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@sergio-correia sergio-correia merged commit cadeeea into latchset:master Apr 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ordering issue with dracut 110

2 participants