Bug 182935 - bsdinstall(8): Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf
Summary: bsdinstall(8): Installation program interprets "dhclient already running" as ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords: install
Depends on:
Blocks:
 
Reported: 2013-10-12 23:00 UTC by Michael Kremser
Modified: 2022-10-13 17:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Kremser 2013-10-12 23:00:00 UTC
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

Fix: 

"dhclient already running" should not be considered an error. Perhaps
there is an exit code that could be evaluated.
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".
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-05-05 04:20:06 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-sysinstall

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:46:43 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.