misc/182935: Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf

Michael Kremser mkspamx-fbsd at yahoo.de
Sat Oct 12 22:00:00 UTC 2013


>Number:         182935
>Category:       misc
>Synopsis:       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-bugs
>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:
>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 at 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 at 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 at 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 chosse "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:
>Unformatted:


More information about the freebsd-bugs mailing list