dracut: fix running with v110 Dracut (#545)#549
Merged
sergio-correia merged 1 commit intolatchset:masterfrom Apr 17, 2026
Merged
dracut: fix running with v110 Dracut (#545)#549sergio-correia merged 1 commit intolatchset:masterfrom
sergio-correia merged 1 commit intolatchset:masterfrom
Conversation
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>
This was referenced Apr 16, 2026
sergio-correia
approved these changes
Apr 17, 2026
Collaborator
sergio-correia
left a comment
There was a problem hiding this comment.
Thanks for the fix!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partinal revert of 0e3a8b6 ("dracut: fix running with pre-v103 Dracut")
The installation of
cryptsetup.targetby Dracut was originally made by00systemd, later10systemd, but was removed in v104. The installation somehow worked, because before v104 and after v104 there always was a module installingcryptsetup.targetbeforecleviswas installed -systemd-cryptsetup, which was moved from90systemd-cryptsetupto01systemd-cryptsetupin v105 and moved to11systemd-cryptsetupin v108.According to that the version v104 was broken and now version v110 is broken again, because v110 moved
systemd-cryptsetupto71systemd-cryptsetup, which is installed after50clevis.Fix this mess by returning back the installation of
cryptsetup.targetinto50clevismodule.This fixes the following error during Dracut installation:
Fixes: #545