From: Timo Rothenpieler Date: Wed, 28 Aug 2024 18:45:48 +0000 (+0200) Subject: fix(systemd-networkd): make sure default network is always last X-Git-Tag: 104~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1dfdaca22d5074a6a3d8fcf6df080752b84803d;p=thirdparty%2Fdracut-ng.git fix(systemd-networkd): make sure default network is always last Fixes #618 --- diff --git a/modules.d/01systemd-networkd/module-setup.sh b/modules.d/01systemd-networkd/module-setup.sh index 007590b5a..23a6ecbeb 100755 --- a/modules.d/01systemd-networkd/module-setup.sh +++ b/modules.d/01systemd-networkd/module-setup.sh @@ -63,7 +63,7 @@ install() { "$systemdsystemunitdir"/systemd-networkd-wait-online.service.d/99-dracut.conf inst_simple "$moddir"/99-default.network \ - "$systemdnetworkconfdir"/99-dracut-default.network + "$systemdnetworkconfdir"/zzzz-dracut-default.network inst_hook cmdline 99 "$moddir"/networkd-config.sh inst_hook initqueue/settled 99 "$moddir"/networkd-run.sh diff --git a/modules.d/01systemd-networkd/networkd-config.sh b/modules.d/01systemd-networkd/networkd-config.sh index eb450c6ea..48038aaad 100755 --- a/modules.d/01systemd-networkd/networkd-config.sh +++ b/modules.d/01systemd-networkd/networkd-config.sh @@ -20,7 +20,7 @@ for f in /run/systemd/network/*.network; do } >> "$f" # Remove the default network if at least one was generated - rm -f "$systemdnetworkconfdir"/99-dracut-default.network + rm -f "$systemdnetworkconfdir"/zzzz-dracut-default.network done # Just in case networkd was already running