Skip to content

Commit

Permalink
fix: add bash dependency when bash scripts are used in the module
Browse files Browse the repository at this point in the history
The following dracut modules are impacted:
 - systemd-networkd
 - plymouth
 - zipl
  • Loading branch information
jozzsi authored and LaszloGombos committed Nov 10, 2024
1 parent 484a8a2 commit 3a04a13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules.d/01systemd-networkd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ check() {
depends() {

# This module has external dependency on other module(s).
echo net-lib kernel-network-modules systemd-sysusers systemd
echo net-lib kernel-network-modules systemd-sysusers systemd bash
# Return 0 to include the dependent module(s) in the initramfs.
return 0

Expand Down
2 changes: 1 addition & 1 deletion modules.d/45plymouth/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ check() {

# called by dracut
depends() {
echo drm
echo drm bash
}

# called by dracut
Expand Down
5 changes: 5 additions & 0 deletions modules.d/91zipl/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ check() {
return 0
}

# called by dracut
depends() {
echo bash
}

# called by dracut
installkernel() {
local _boot_zipl
Expand Down

0 comments on commit 3a04a13

Please sign in to comment.