diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-06-05 15:38:07 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-06-30 11:32:14 +0800 |
commit | b90b84b36d01f6663a79d9467a37cd9d6f6a68e7 (patch) | |
tree | add3d204da37b35a426ab3538d7fbeae8a862684 /discover | |
parent | a70b45006752970840fdfff0a595d293b67a8548 (diff) | |
download | talos-petitboot-b90b84b36d01f6663a79d9467a37cd9d6f6a68e7.tar.gz talos-petitboot-b90b84b36d01f6663a79d9467a37cd9d6f6a68e7.zip |
discover/network: leave udhcpc processes running
Currently, we start udhcpc with the '-n' argument, which means they'll
exit if no lease is obtained.
We'd prefer to leave the DHCP client running, so that any
slow-to-initialise links are not left deconfigured.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/network.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discover/network.c b/discover/network.c index 36807f0..1801710 100644 --- a/discover/network.c +++ b/discover/network.c @@ -228,7 +228,6 @@ static void configure_interface_dhcp(struct interface *interface) const char *argv[] = { pb_system_apps.udhcpc, "-R", - "-n", "-f", "-O", "pxeconffile", "-O", "pxepathprefix", @@ -245,7 +244,7 @@ static void configure_interface_dhcp(struct interface *interface) if (platform && platform->dhcp_arch_id != 0xffff) snprintf(id, sizeof(id), "0x5d:%04x", platform->dhcp_arch_id); else - argv[12] = NULL; + argv[11] = NULL; process = process_create(interface); |