Skip to content

Commit

Permalink
fix(systemd-networkd): remove basename dependency
Browse files Browse the repository at this point in the history
The basename tool was not listed in the requirements and is also not needed.
Also see dracutdevs/dracut@4c216b1
  • Loading branch information
flyser authored and LaszloGombos committed Aug 30, 2024
1 parent 31424de commit 2bb7444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/01systemd-networkd/networkd-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bb7444

Please sign in to comment.