From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 12 22:00:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 C8051EB9 for ; Sat, 12 Oct 2013 22:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A760F22ED for ; Sat, 12 Oct 2013 22:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9CM00kE030816 for ; Sat, 12 Oct 2013 22:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9CM00gg030815; Sat, 12 Oct 2013 22:00:00 GMT (envelope-from gnats) Resent-Date: Sat, 12 Oct 2013 22:00:00 GMT Resent-Message-Id: <201310122200.r9CM00gg030815@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Kremser 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 ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/182935: Installation program interprets "dhclient already running" as an error and writes redundant data to /etc/rc.conf X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Oct 2013 22:00:00 -0000 >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@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 metric 0 mtu 1500 options=9b 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 media: Ethernet autoselect (1000baseT ) 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: