Skip to content

Commit

Permalink
fix(dracut-systemd): include systemd-cryptsetup module when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jozzsi authored and Conan-Kudo committed Aug 29, 2024
1 parent 7cb8fd4 commit e0e5424
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules.d/98dracut-systemd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ check() {

# called by dracut
depends() {
echo "systemd-initrd systemd-ask-password"
local deps
deps="systemd-initrd systemd-ask-password"

# when systemd and crypt are both included
# systemd-cryptsetup is mandatory dependency
# see https://github.com/dracut-ng/dracut-ng/issues/563
if dracut_module_included "crypt"; then
deps+=" systemd-cryptsetup"
fi

echo "$deps"
return 0
}

Expand Down

0 comments on commit e0e5424

Please sign in to comment.