]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
feat(systemd-networkd): do not require bash
authorBenjamin Drung <benjamin.drung@canonical.com>
Tue, 5 Aug 2025 08:41:54 +0000 (10:41 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 9 Aug 2025 11:04:41 +0000 (07:04 -0400)
The systemd-networkd module ships `networkd-run.sh` that uses bash, but
there is no bash specific code inside this script. So drop the bash
requirement.

modules.d/11systemd-networkd/module-setup.sh
modules.d/11systemd-networkd/networkd-run.sh

index 15c20c67fd7f306a82feac6ad66d22ae3ad695a0..9636337757cead060e44758cde8f0034a77cddde 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 bash initqueue
+    echo net-lib kernel-network-modules systemd-sysusers systemd initqueue
     # Return 0 to include the dependent module(s) in the initramfs.
     return 0
 
index a3ea0f6c47fc6d50deea259c468fa4fac119c4b1..b14a43f40111e1e600c7ac5117215716cec70f2a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 command -v source_hook > /dev/null || . /lib/dracut-lib.sh