NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

install/51214: Sysinst should add dhcpcd to rc.conf with -b flag.



>Number:         51214
>Category:       install
>Synopsis:       Sysinst should add dhcpcd to rc.conf with -b flag.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 03 20:20:00 +0000 2016
>Originator:     coypu
>Release:        NetBSD-7.0.1
>Organization:
>Environment:
NetBSD lap 7.0_STABLE NetBSD 7.0_STABLE (GENERIC.201606022350Z) amd64
>Description:
default install
configure networking
add this to /etc (one of the options)

end result:

dhcpcd_flags="-qM $if" in /etc/rc.conf.

dhcpcd in this form will block boot, wasting time for no reason.

add -b flag:

-b, --background Background immediately. This is useful for startup scripts which don't disable link messages for carrier status.

thanks.
>How-To-Repeat:

>Fix:
You may disagree on syntax, but this is where to add.

diff --git a/usr.sbin/sysinst/net.c b/usr.sbin/sysinst/net.c
index bb5d493..72b2328 100644
--- a/usr.sbin/sysinst/net.c
+++ b/usr.sbin/sysinst/net.c
@@ -1129,7 +1129,7 @@ mnt_net_config(void)
 		 * it to our interface
 		 */
 		add_rc_conf("dhcpcd=YES\n");
-		add_rc_conf("dhcpcd_flags=\"-qM %s\"\n", net_dev);
+		add_rc_conf("dhcpcd_flags=\"-qM -b %s\"\n", net_dev);
         }
 
 	if (ifconf)



Home | Main Index | Thread Index | Old Index