NetBSD Problem Report #35066

From www@NetBSD.org  Fri Nov 17 19:35:33 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 97DD863BAFE; Fri, 17 Nov 2006 19:35:33 +0000 (UTC)
Message-Id: <20061117193533.97DD863BAFE@narn.NetBSD.org>
Date: Fri, 17 Nov 2006 19:35:33 +0000 (UTC)
From: blair.sadewitz@gmail.com
Reply-To: blair.sadewitz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysinst should save media options in an ifconfig.if(5) file
X-Send-Pr-Version: www-1.0

>Number:         35066
>Category:       install
>Synopsis:       sysinst should save media options in an ifconfig.if(5) file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 17 19:40:00 +0000 2006
>Closed-Date:    Sat Sep 15 17:46:15 +0000 2012
>Last-Modified:  Sat Sep 15 17:46:15 +0000 2012
>Originator:     Blair Sadewitz
>Release:        NetBSD 4.0/amd64
>Organization:
>Environment:
NetBSD 4.0/amd64 installation from 200611090000Z snapshot, but it is the same with -current
>Description:
I use wm(4), and as media autodetection doesn't work, I must specify it manually in sysinst.  It would be convenient if this was safed in an ifconfig.if(5) file, as all other meaningful network options are retained.

Another, less-critical, but still handy feature request would be to list the media options for all available interfaces when the user is prompted to specify them, as not everyone knows what they are.

>How-To-Repeat:
Use a media option in sysinst; it is not retained, unlike DHCP/IP address settings, et. al.

>Fix:
Save the media options in ifconfig.if(5) file. This should be trivial as sysinst already creates this file and writes "up" to it.

>Release-Note:

>Audit-Trail:
From: Julian Djamil Fagir <gnrp@komkon2.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: install/35066: sysinst should save media options in an
 ifconfig.if(5) file
Date: Fri, 24 Feb 2012 22:14:49 +0100

 --Sig_/ZJE2aCb=lsXFco0Kq=q3j9D
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable

 Hi,

 in current, this should be fixed, see distrib/util/sysinst/net.c:
 1153             if (*net_media !=3D '\0')
 1154                 scripting_fprintf(ifconf,
 1155                     "%s netmask %s media %s\n",
 1156                     net_ip, net_mask, net_media);
 1157             else
 1158                 scripting_fprintf(ifconf, "%s netmask %s\n",
 1159                     net_ip, net_mask);

 Isn't it?

 Regards, Julian

 --Sig_/ZJE2aCb=lsXFco0Kq=q3j9D
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)

 iEYEARECAAYFAk9H/ckACgkQc7h7cu1Hpp6toQCggADUjNlNR3ogp6YlPoAzxt5D
 MS4An1cAt+kL5AqTCiV+fZEnRrmEgxlC
 =U8mv
 -----END PGP SIGNATURE-----

 --Sig_/ZJE2aCb=lsXFco0Kq=q3j9D--

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 13 Apr 2012 01:32:13 +0000
State-Changed-Why:
Does this work in -6?


From: Julian Fagir <gnrp@komkon2.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/35066 (sysinst should save media options in an
 ifconfig.if(5) file)
Date: Sat, 23 Jun 2012 23:18:42 +0200

 --Sig_/AWbC8I_QKWuTVyk/u1PRWwj
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable

 > Does this work in -6?
 yes, it does. Just tested in Virtualbox with 6.0_BETA2.

 --Sig_/AWbC8I_QKWuTVyk/u1PRWwj
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.18 (NetBSD)

 iEYEARECAAYFAk/mMrcACgkQc7h7cu1Hpp6c8wCfXH6mjz+/34cQN6TkLf4xnKkT
 h7wAn05ZdcZPjhfSQIJTuX5VtKmdUsHH
 =Zazs
 -----END PGP SIGNATURE-----

 --Sig_/AWbC8I_QKWuTVyk/u1PRWwj--

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 24 Jun 2012 20:28:02 +0000
State-Changed-Why:
ok, so it at most affects -5 (at this point in the -4 lifecycle it
won't be getting fixed there regardless)


State-Changed-From-To: open->closed
State-Changed-By: jdf@NetBSD.org
State-Changed-When: Sat, 15 Sep 2012 17:46:15 +0000
State-Changed-Why:
Yes, this was changed a few weeks after the bug by martin with
rev. 1.114 of net.c. See
http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/utils/sysinst/net.c.diff?r1=1.113&r2=1.114&only_with_tag=MAIN&f=h


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.