]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-networkd): correct path of 99-default.network on hostonly=no
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 29 Oct 2025 11:27:13 +0000 (12:27 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Wed, 29 Oct 2025 13:15:29 +0000 (09:15 -0400)
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

index e27cdb9361326725c87cfe2f269be0193589a2e7..0c6bcf6b0c6605b944813d68a0d8e97e762c9190 100755 (executable)
@@ -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