]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix: add bash dependency when bash scripts are used in the module
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 9 Nov 2024 23:21:24 +0000 (18:21 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 10 Nov 2024 00:54:39 +0000 (19:54 -0500)
The following dracut modules are impacted:
 - systemd-networkd
 - plymouth
 - zipl

modules.d/01systemd-networkd/module-setup.sh
modules.d/45plymouth/module-setup.sh
modules.d/91zipl/module-setup.sh

index e41d06462b45ee45fccb31edf97b9af7c94624b0..e9f3cbd10d9ce1e61a3ead10b7e21f061a612671 100755 (executable)
@@ -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
 
index 7183c92189af961a5eccebc1d62f1f86eb496793..f17b60d00481d702ebff9975b177ae6695aaac56 100755 (executable)
@@ -24,7 +24,7 @@ check() {
 
 # called by dracut
 depends() {
-    echo drm
+    echo drm bash
 }
 
 # called by dracut
index 05403def9c349ac155415c6e7a40af570b0e03f3..5d8d182ec616691a64a4cca9255041b46d139c5a 100755 (executable)
@@ -18,6 +18,11 @@ check() {
     return 0
 }
 
+# called by dracut
+depends() {
+    echo bash
+}
+
 # called by dracut
 installkernel() {
     local _boot_zipl