From: Benjamin Drung Date: Wed, 29 Oct 2025 11:27:13 +0000 (+0100) Subject: fix(systemd-networkd): correct path of 99-default.network on hostonly=no X-Git-Tag: 109~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523c9b0;p=thirdparty%2Fdracut-ng.git fix(systemd-networkd): correct path of 99-default.network on hostonly=no Commit 2991f74ab46389947ce8f96b87a7abdc1862cbb6 ("chore(dracut): enforce that /etc is only used in hostonly mode") does not set `systemdnetworkconfdir` any more on `hostonly=no`. This causes the systemd-network module to install `99-default.network` to `/zzzz-dracut-default.network` on generic builds and therefore loosing this network config. Install `99-default.network` to the system path in `/usr` instead. --- diff --git a/modules.d/11systemd-networkd/module-setup.sh b/modules.d/11systemd-networkd/module-setup.sh index e27cdb936..0c6bcf6b0 100755 --- a/modules.d/11systemd-networkd/module-setup.sh +++ b/modules.d/11systemd-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"/zzzz-dracut-default.network + "$systemdnetwork"/zzzz-dracut-default.network inst_hook cmdline 99 "$moddir"/networkd-config.sh inst_hook initqueue/settled 99 "$moddir"/networkd-run.sh