]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-cryptsetup): increase ordering to resolve regression
authorJo Zzsi <jozzsicsataban@gmail.com>
Fri, 23 Jan 2026 21:57:46 +0000 (16:57 -0500)
committerBenjamin Drung <bdrung@ubuntu.com>
Fri, 30 Jan 2026 12:13:34 +0000 (13:13 +0100)
Support for `AF_UNIX` key files was added in 80480a7, in `90systemd-cryptsetup`
at that time. `90systemd-cryptsetup` depending on `90crypt` was ok, because
`90crypt` was evaluated before `90systemd-cryptsetup`, filling
`$initdir/etc/crypttab` before `90systemd-cryptsetup` tried to parse it.
But 43581cd changed the order to `01systemd-cryptsetup`, causing that the
install section of this module is evaluated before `90crypt`, that is,
before `$initdir/etc/crypttab` exists.

The systemd-cryptsetup dracut module needs to be ordered after the
crypt dracut module to ensure that "$initdir"/etc/crypttab is computed.

Fixes: https://github.com/dracut-ng/dracut-ng/issues/2104
modules.d/71systemd-cryptsetup/module-setup.sh [moved from modules.d/11systemd-cryptsetup/module-setup.sh with 97% similarity]

similarity index 97%
rename from modules.d/11systemd-cryptsetup/module-setup.sh
rename to modules.d/71systemd-cryptsetup/module-setup.sh
index 0dbf004b2c1ec9991dd13151a5c1a137bd80d6af..46df291e837a5910f6e657ec72d6ab403be0516e 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# this dracut module needs to be ordered after the crypt dracut module
+# to ensure that "$initdir"/etc/crypttab is computed
+
 # called by dracut
 check() {
     local fs