Subject: install/35538: sysinst duplicates hostname on upgrade
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <root@garbled.net>
List: netbsd-bugs
Date: 02/01/2007 20:35:00
>Number:         35538
>Category:       install
>Synopsis:       sysinst duplicates hostname on upgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 01 20:35:00 +0000 2007
>Originator:     Tim Rightnour
>Release:        NetBSD 4.0_BETA2
>Organization:
	
>Environment:
	
	
System: NetBSD polaris.garbled.net 3.0 NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: powerpc
Machine: prep
>Description:
I upgrade my machines regularly via sysinst.  I usually do this with the files
located on NFS, which sysinst gathers by asking me about my network config.

If after the install, you say yes to "this network info is good and please 
install it in /etc", sysinst will do something rather silly to rc.conf:

# Add local overrides below
#
hostname=atik.garbled.net
defaultroute="192.168.10.11"
rpcbind=YES
timed=YES
sshd=YES
nfs_client=YES
inetd=YES
hostname=atik.garbled.net
defaultroute="192.168.10.11"
hostname=atik.garbled.net
defaultroute="192.168.10.11"

	
>How-To-Repeat:
Upgrade machine, say yes to save network information.  Repeat.
	
>Fix:
Sysinst should check rc.conf first?
	

>Unformatted: