commit 574c95640b81e520e07f3910a6050596abd4bd00
parent 19360eca57fe842ecef29268418db08dfc9f890b
Author: Daniel Barlow <dan@telent.net>
Date: Fri, 31 Oct 2025 21:46:21 +0000
remove dhcpc readiness notification
because there's an ugly deadlock. s6-rc won't start anything else
while waiting for int.link.dhcpc to announce it's ready, and the
-running service needs to call s6-rc to launch the scripts that add
members to the bridge. dhcpc won't work until the bridge has a member
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/network/dhcpc.nix b/modules/network/dhcpc.nix
@@ -28,7 +28,7 @@ let
bound)
# this doesn't actually replace, it adds a new address.
set_address
- echo >/proc/self/fd/10
+ # echo >/proc/self/fd/10
;;
renew)
set_address
@@ -41,7 +41,6 @@ let
in
longrun {
inherit name;
- run = "exec /bin/udhcpc -f -i $(output ${interface} ifname) -x hostname:$(cat /proc/sys/kernel/hostname) -s ${script}";
- notification-fd = 10;
+ run = "exec /bin/udhcpc -n -A 15 -f -i $(output ${interface} ifname) -x hostname:$(cat /proc/sys/kernel/hostname) -s ${script}";
dependencies = [ interface ];
}