From: Jo Zzsi Date: Fri, 23 Jan 2026 21:57:46 +0000 (-0500) Subject: fix(systemd-cryptsetup): increase ordering to resolve regression X-Git-Tag: 110~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7bdbbb702abcd9c141decd0160284ad22a8b253;p=thirdparty%2Fdracut-ng.git fix(systemd-cryptsetup): increase ordering to resolve regression 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 --- diff --git a/modules.d/11systemd-cryptsetup/module-setup.sh b/modules.d/71systemd-cryptsetup/module-setup.sh similarity index 97% rename from modules.d/11systemd-cryptsetup/module-setup.sh rename to modules.d/71systemd-cryptsetup/module-setup.sh index 0dbf004b2..46df291e8 100755 --- a/modules.d/11systemd-cryptsetup/module-setup.sh +++ b/modules.d/71systemd-cryptsetup/module-setup.sh @@ -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