]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
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)
commitd7bdbbb702abcd9c141decd0160284ad22a8b253
tree429c053a80d12bd21737b93a1115e63bec79cbb6
parent7679b3d8b9e8da0a03efe38f4b30066925d19af1
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
modules.d/71systemd-cryptsetup/module-setup.sh [moved from modules.d/11systemd-cryptsetup/module-setup.sh with 97% similarity]