From nobody@nwww.freebsd.org  Fri May  3 07:05:31 2002
Return-Path: <nobody@nwww.freebsd.org>
Received: from nwww.freebsd.org (nwww.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id D264537B400
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  3 May 2002 07:05:30 -0700 (PDT)
Received: from nwww.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g43E6dhG009635
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 3 May 2002 07:06:39 -0700 (PDT)
	(envelope-from nobody@nwww.freebsd.org)
Received: (from nobody@localhost)
	by nwww.freebsd.org (8.12.2/8.12.2/Submit) id g43E6dEx009634;
	Fri, 3 May 2002 07:06:39 -0700 (PDT)
Message-Id: <200205031406.g43E6dEx009634@nwww.freebsd.org>
Date: Fri, 3 May 2002 07:06:39 -0700 (PDT)
From: "vandys@zendo.com" <vandys@zendo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: LAN interface in wrong state after attempting net install
X-Send-Pr-Version: www-1.0

>Number:         37710
>Category:       bin
>Synopsis:       sysinstall(8): LAN interface in wrong state after attempting net install
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 03 07:10:01 PDT 2002
>Closed-Date:    
>Last-Modified:  Sun Jan 23 20:55:30 UTC 2011
>Originator:     vandys@zendo.com
>Release:        4.5 release
>Organization:
Trapeze Networks
>Environment:
x86, Ethernet
>Description:
      When attempting a net install, I chose an FTP source which
happened to be now.  Although the system offered to try again,
the interface had been brought down, and was not put back "up"
before this retry attempt.  Thus subsequent attempts failed until
I switched consoles to a shell and ifconfig'ed the interface back
up.
>How-To-Repeat:
      
>Fix:
      Check your logic for when you force the interface down.
Also remember that the default route will be lost when the
interface is deleted, so the gateway has to be reinstalled when
the interface is brought up again.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->murray 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Mon May 6 01:47:35 PDT 2002 
Responsible-Changed-Why:  
Sysinstall PR for Murray. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37710 
Responsible-Changed-From-To: murray->freebsd-qa 
Responsible-Changed-By: murray 
Responsible-Changed-When: Fri Mar 18 02:40:03 GMT 2005 
Responsible-Changed-Why:  
I am no longer working in this area. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=37710 
Responsible-Changed-From-To: freebsd-bugs->brucec 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Fri Apr 30 18:54:55 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37710 

From: Garrett Cooper <yanegomi@gmail.com>
To: bug-followup@FreeBSD.org, vandys@zendo.com
Cc:  
Subject: Re: bin/37710: sysinstall(8): LAN interface in wrong state after 
	attempting net install
Date: Fri, 30 Apr 2010 14:40:04 -0700

     The problem with this issue is that the logic to do the work of
 bringing up the interfaces is only contingent on one state: is the
 system running as init (pid == 1) or not? If it's running as init it
 will go and nuke the interfaces, default route, etc... which is
 probably not what you want ;]. Some possible solutions:
     1. Modifying the install script to check via ifconfig to see
 whether or not things are up, set an environment variable, and proceed
 at init time (hacky solution).
     2. Inline the check in the sysinstall code to verify via ifconfig
 (PITA to maintain).
     3. Just prompt the user every single time they run an install IF
 they want to monkey around with the interface configuration.
     3. seems very doable and it wouldn't impede too much with the user
 experience IMO; most folks just need to run through the configuration
 once, if they fail and have to go back, well, que sirrah sirrah... one
 dialog wouldn't hurt too much. To alleviate usability issues, a global
 variable could be added to state `hey, network's setup -- we don't
 need to monkey frak around with it twice' to improve user experience,
 but there needs to be an override switch in that event so that if
 people screw things up they can go and reconfigure the details again.
 That's one piece that's not really available today that could be done
 better in sysinstall.
 Cheers,
 -Garrett
Responsible-Changed-From-To: brucec->freebsd-sysinstall 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Jan 23 20:54:31 UTC 2011 
Responsible-Changed-Why:  
Back to the pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37710 
>Unformatted:
