misc/182935: Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf
mkspamx-fbsd at yahoo.de
Sat Oct 12 22:00:00 UTC 2013
>Synopsis: Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf
>Arrival-Date: Sat Oct 12 22:00:00 UTC 2013
>Originator: Michael Kremser
>Release: 10 Alpha 5
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
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: dhclient already running, pid: 1027
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
ifconfig_em0="inet 192.168.1.145 netmask 0xffffff00"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
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
inet 192.168.1.145 netmask 0xffffff00 broadcast 192.168.1.255
inet6 fe80::a00:27ff:fe5c:ce%em0 prefixlen 64 scopeid 0x1
media: Ethernet autoselect (1000baseT <full-duplex>)
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".
"dhclient already running" should not be considered an error. Perhaps there is an exit code that could be evaluated.
More information about the freebsd-bugs