From: Benjamin Drung Date: Tue, 5 Aug 2025 08:41:54 +0000 (+0200) Subject: feat(systemd-networkd): do not require bash X-Git-Tag: 109~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f2e8da7fe79110d1c41f532a108a15dafb8569c;p=thirdparty%2Fdracut-ng.git feat(systemd-networkd): do not require bash 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. --- diff --git a/modules.d/11systemd-networkd/module-setup.sh b/modules.d/11systemd-networkd/module-setup.sh index 15c20c67f..963633775 100755 --- a/modules.d/11systemd-networkd/module-setup.sh +++ b/modules.d/11systemd-networkd/module-setup.sh @@ -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 diff --git a/modules.d/11systemd-networkd/networkd-run.sh b/modules.d/11systemd-networkd/networkd-run.sh index a3ea0f6c4..b14a43f40 100755 --- a/modules.d/11systemd-networkd/networkd-run.sh +++ b/modules.d/11systemd-networkd/networkd-run.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh command -v source_hook > /dev/null || . /lib/dracut-lib.sh