From 2bb7444850b57893a6c6c875da69109b83da5090 Mon Sep 17 00:00:00 2001 From: Fabian Henze <1144183+flyser@users.noreply.github.com> Date: Mon, 26 Aug 2024 20:05:35 +0000 Subject: [PATCH] fix(systemd-networkd): remove basename dependency The basename tool was not listed in the requirements and is also not needed. Also see https://github.com/dracutdevs/dracut/commit/4c216b1db6a86373549e13b60250a7fcf94417b9 --- modules.d/01systemd-networkd/networkd-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/01systemd-networkd/networkd-run.sh b/modules.d/01systemd-networkd/networkd-run.sh index 5445b4646..a32b8394a 100755 --- a/modules.d/01systemd-networkd/networkd-run.sh +++ b/modules.d/01systemd-networkd/networkd-run.sh @@ -3,7 +3,7 @@ type source_hook > /dev/null 2>&1 || . /lib/dracut-lib.sh for ifpath in /sys/class/net/*; do - ifname="$(basename "$ifpath")" + ifname="${ifpath##*/}" # shellcheck disable=SC2015 [ "$ifname" != "lo" ] && [ -e "$ifpath" ] && [ ! -e /tmp/networkd."$ifname".done ] || continue