From nobody@FreeBSD.org  Sat Oct 12 21:57:57 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id AFCC2E90
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Oct 2013 21:57:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 82F8122D5
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Oct 2013 21:57:57 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9CLvtQB078699
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Oct 2013 21:57:55 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9CLvtNP078698;
	Sat, 12 Oct 2013 21:57:55 GMT
	(envelope-from nobody)
Message-Id: <201310122157.r9CLvtNP078698@oldred.freebsd.org>
Date: Sat, 12 Oct 2013 21:57:55 GMT
From: Michael Kremser <mkspamx-fbsd@yahoo.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182935
>Category:       bin
>Synopsis:       bsdinstall(8): Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 12 22:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon May 05 03:22:49 UTC 2014
>Originator:     Michael Kremser
>Release:        10 Alpha 5
>Organization:
>Environment:
FreeBSD fbsd10vtm 10.0-ALPHA5 FreeBSD 10.0-ALPHA5 #0 r256092: Sun Oct  6 22:30:23 UTC 2013     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When running the network setup part of the system installation program,
I selected "No" when I was asked if I wanted to try SLAAC. After that,
I selected the network setup again and when it asked me if I would try
to use DHCP for IPv4, an error message was shown for < 1 sec at the bottom
of the screen:

dhclient[1225]: dhclient already running, pid: 1027
dhclient[1225]: exiting

The program interpreted this as an error, as it wrote "DHCP lease
acquisition failed" on the screen. I then tried it multiple times again.
The result was that the program generated the following /etc/rc.conf
file:

root@fbsd10vtm:/etc # cat rc.conf 
hostname="fbsd10vtm"
keymap="german.cp850.kbd"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="DHCP"
ifconfig_em0="inet 192.168.1.145 netmask 0xffffff00"
defaultrouter="192.168.1.1"
ifconfig_em0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

Consequences: the machine has got an IPv4 address, but /etc/resolv.conf
is empty. Although it is configured to accept RAs, the system did not
configure an IPv6 address (my RAD is running, the system I currently work
on has IPv6 connectivity).

root@fbsd10vtm:/etc # ifconfig 
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
	ether 08:00:27:5c:00:ce
	inet 192.168.1.145 netmask 0xffffff00 broadcast 192.168.1.255 
	inet6 fe80::a00:27ff:fe5c:ce%em0 prefixlen 64 scopeid 0x1 
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active

>How-To-Repeat:
In the network part of the system installation program, choose "Yes" when
asked for "configure IPv4", "use DHCP" and "configure IPv6", but then
choose "No" when asked to try SLAAC. Then, repeat the procedure the same
way multiple times, finally choose "No" when asked for "configure IPv6".
>Fix:
"dhclient already running" should not be considered an error. Perhaps
there is an exit code that could be evaluated.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-sysinstall 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 5 03:20:06 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182935 
>Unformatted:
