From 70c5b9fc4b74f46aee1c36a0e93c962ea619cd9b Mon Sep 17 00:00:00 2001 From: Ivan Shapovalov Date: Wed, 4 Jun 2025 18:14:17 +0300 Subject: [PATCH] configs: use `systemd-networkd-wait-online --any` by default This way, systemd-networkd-wait-online won't hang on boot for users who only have _some_ of the configured interfaces online / in use (which is the case for everyone who sets up Wi-Fi, since kvmd-bootconfig does not remove eth0.network even if it was never intended to be used). We deem this networking semantics typical for Pi-KVM in general; users who need to wait for multiple interfaces to activate will have to countermand this drop-in manually. Fixes pikvm/pikvm#1514. --- .../11-pikvm-wait-any.conf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 configs/os/services/systemd-networkd-wait-online.service.d/11-pikvm-wait-any.conf diff --git a/configs/os/services/systemd-networkd-wait-online.service.d/11-pikvm-wait-any.conf b/configs/os/services/systemd-networkd-wait-online.service.d/11-pikvm-wait-any.conf new file mode 100644 index 00000000..fae09255 --- /dev/null +++ b/configs/os/services/systemd-networkd-wait-online.service.d/11-pikvm-wait-any.conf @@ -0,0 +1,8 @@ +# Fix https://github.com/pikvm/pikvm/issues/1514: +# Wait for any single network interface, not all configured ones +# (Rationale: when user configures Wi-Fi via pikvm.txt or otherwise, +# we do not delete the Ethernet config, which means it will remain active +# regardless of whether the user ever intended to use Ethernet.) +[Service] +ExecStart= +ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any