From 386ca9618efca9ef48e9bc171cb9cb8dc89efe56 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 1 Mar 2026 07:46:06 +0100 Subject: [PATCH] confd: ensure DHCP client is not started before netd This is a follow-up to c559b8f2 (new-frr) where netd now is responsible for funneling static routes, as well as routes from DHCP clients, into the kernel via Frr. For this to work, in particular at boot, any DHCP client must wait for netd to have started or any default routes learned will be lost. Signed-off-by: Joachim Wiberg --- src/confd/src/dhcp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/confd/src/dhcp-client.c b/src/confd/src/dhcp-client.c index ba40193a..1d0f347a 100644 --- a/src/confd/src/dhcp-client.c +++ b/src/confd/src/dhcp-client.c @@ -144,7 +144,7 @@ static void add(const char *ifname, struct lyd_node *cfg) fprintf(fp, "# Generated by Infix confd\n"); fprintf(fp, "metric=%s\n", metric); - fprintf(fp, "service name:dhcp-client :%s \\\n" + fprintf(fp, "service name:dhcp-client :%s \\\n" " [2345] udhcpc -f -p /run/dhcp-client-%s.pid -t 3 -T 5 -A 30 %s -S -R \\\n" " %s%s \\\n" " -i %s %s %s \\\n"