From 523c9b05aef1fa57d0623511137572287a76769d Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Wed, 29 Oct 2025 12:27:13 +0100 Subject: [PATCH] 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. --- modules.d/11systemd-networkd/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3