Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dracut: fix running with pre-v103 Dracut
Dracut v103+ moved SystemD cryptsetup code into a separate module, so detect it and when found, use it. Clevis units do not depend on `cryptsetup.target`, so do not install it. The target `cryptsetup.target` is installed by both [90systemd-cryptsetup][1] in v103+ and [01systemd-cryptsetup][2] in v105+, so there is no need to install it by Clevis. [1]: https://github.com/dracut-ng/dracut-ng/blob/3fce598fb45aa5618cdf885eb48cf327104ffcb8/modules.d/90systemd-cryptsetup/module-setup.sh#L53 [2]: https://github.com/dracut-ng/dracut-ng/blob/a2669c447bd5e0406f55efcc8c9c58be89458b08/modules.d/01systemd-cryptsetup/module-setup.sh#L54 Signed-off-by: Oldřich Jedlička <[email protected]>
- Loading branch information