From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 22 00:50:34 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 691FF16A400 for ; Wed, 22 Mar 2006 00:50:34 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D98C43D67 for ; Wed, 22 Mar 2006 00:50:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2M0oFlk047996 for ; Wed, 22 Mar 2006 00:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k2M0oEX5047993; Wed, 22 Mar 2006 00:50:15 GMT (envelope-from gnats) Resent-Date: Wed, 22 Mar 2006 00:50:15 GMT Resent-Message-Id: <200603220050.k2M0oEX5047993@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, "Devon H. O'Dell" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DE0716A425 for ; Wed, 22 Mar 2006 00:43:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECED243D49 for ; Wed, 22 Mar 2006 00:43:16 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2M0hGvZ081852 for ; Wed, 22 Mar 2006 00:43:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k2M0R5Tm076128; Wed, 22 Mar 2006 00:27:05 GMT (envelope-from nobody) Message-Id: <200603220027.k2M0R5Tm076128@www.freebsd.org> Date: Wed, 22 Mar 2006 00:27:05 GMT From: "Devon H. O'Dell" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/94815: [patch] [sysinstall] Upping the network interface before dhclient in sysinstall X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 00:50:34 -0000 >Number: 94815 >Category: bin >Synopsis: [patch] [sysinstall] Upping the network interface before dhclient in sysinstall >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 22 00:50:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Devon H. O'Dell >Release: 6.0-RELEASE-p3 >Organization: iXsystems >Environment: FreeBSD noisegen.iXsystems.com 6.0-RELEASE-p3 FreeBSD 6.0-RELEASE-p3 #0: Fri Jan 20 09:37:01 PST 2006 dodell@noisegen.iXsystems.com:/usr/obj/usr/src/sys/Q i386 >Description: There is a strange issue with the bge(4) driver under which some, but not all bge(4) chipsets lose their link after being probed by the driver. Indeed, this behavior doesn't even seem to affect all the chips of the affected chipsets. While the rc scripts explicitly up the interface before attempting to use dhclient on them, sysinstall(8) does not. This is particularly annoying when doing PXE-booted, NFS-based installations on a network with addresses allocated via DHCP (as we have in our server assembly network). >How-To-Repeat: Find a system that exhibits this issue (it's not that difficult: I've come across about 15 out of 50 in the last month that do this). Boot it with PXE. When sysinstall(8) asks if you'd like to enable DHCP for the interface, say yes. Be astonished when all fields come up blank. Lather. Rinse. Repeat. >Fix: This patch is also available at http://www.sitetronics.com/~dodell/sysinstall.diff in case this web submission has whitespace issues. -- begin patch -- Index: tcpip.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/sysinstall/tcpip.c,v retrieving revision 1.136 diff -u -r1.136 tcpip.c --- tcpip.c 28 Feb 2006 21:49:32 -0000 1.136 +++ tcpip.c 21 Mar 2006 00:37:55 -0000 @@ -412,6 +412,13 @@ Mkdir("/var/db"); Mkdir("/var/run"); Mkdir("/tmp"); + + /* XXX This is necessary for some bge(4) NICs when booting from + * PXE. It doesn't affect all of the chipsets, and moreover, it + * doesn't seem to affect all chips of the chipsets it does affect. + */ + vsystem("ifconfig %s up", devp->name); + msgNotify("Scanning for DHCP servers..."); /* XXX clear any existing lease */ /* XXX limit protocol to N tries */ -- end patch -- >Release-Note: >Audit-Trail: >Unformatted: