Commit 0e3a8b6
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 <oldium.pro@gmail.com>1 parent 106d4ae commit 0e3a8b6
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
35 | | - | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments