]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-networkd): make sure default network is always last
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 28 Aug 2024 18:45:48 +0000 (20:45 +0200)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Fri, 30 Aug 2024 11:29:44 +0000 (07:29 -0400)
Fixes #618

modules.d/01systemd-networkd/module-setup.sh
modules.d/01systemd-networkd/networkd-config.sh

index 007590b5a8f2d16e2e52adc12434f5a72265a059..23a6ecbeb8d6989960aa32d7fd616e49288e0eb0 100755 (executable)
@@ -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
index eb450c6eaa7f7e1b01dd10c60e9b193ca1c62c7f..48038aaad1f7fce179660e76c74b8b67eaba88cc 100755 (executable)
@@ -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