From grog@freebie.lemis.com  Tue Nov  4 18:41:10 1997
Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA01456
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 4 Nov 1997 18:40:54 -0800 (PST)
          (envelope-from grog@freebie.lemis.com)
Received: (from grog@localhost)
	by freebie.lemis.com (8.8.7/8.8.5) id NAA18329;
	Wed, 5 Nov 1997 13:10:42 +1030 (CST)
Message-Id: <199711050240.NAA18329@freebie.lemis.com>
Date: Wed, 5 Nov 1997 13:10:42 +1030 (CST)
From: Greg Lehey <grog@lemis.com>
Reply-To: grog@lemis.com
To: FreeBSD-gnats-submit@freebsd.org, grog@freebie.lemis.com
Subject: /stand/sysinstall corrupts /etc/rc.conf
X-Send-Pr-Version: 3.2

>Number:         4943
>Category:       bin
>Synopsis:       After running /stand/sysinstall from command line, /etc/rc.conf is corrupted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov  4 18:50:00 PST 1997
>Closed-Date:    Thu Dec 25 02:28:40 PST 1997
>Last-Modified:  Thu Dec 25 02:31:29 PST 1997
>Originator:     Greg Lehey
>Release:        FreeBSD 2.2.5-RELEASE i386
>Organization:
LEMIS, PO Box 460, Echunga SA, Australia
>Environment:

	Standard installation

>Description:

	/stand/sysinstall is designed to be run either during system
	installation or after booting.  If it is started after
	booting, it will modify /etc/rc.conf, even if it doesn't need
	to.  It appears that it removes \r characters, thus making the
	file unusable.  After repeating, the file may be overwritten.
	Here is an example after 5 iterations of starting
	/stand/sysinstall and exiting immediately:

##############################################################
### Important initial Boot-time options  #####################
##############################################################

swapfile="NO"           # Set to name of swapfile if aux swapfile desired."             # Set to name of swapfile if aux
 swapfile desired."             # Set to name of swapfile if aux swapfile desired."             # Set to name of swapfil
e if aux swapfile desired."             # Set to name of swapfile if"           # Set to name of swapfile if aux swapfil
e desired."             # Set to name of swapfile if aux swapfile desired."             # Set to name of swapfile if aux
 swapfile desired."             # Set to name of swapfile if aux swapfile desired."             # Set to name of swapfil
e if aux swapfile desired."             # Set to name of swapfile if aux swapfile desired."     

>How-To-Repeat:

	Run /stand/sysinstall.  Exit immediately.

>Fix:
	
	Don't have time to look for one, sorry.

>Release-Note:
>Audit-Trail:

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: grog@lemis.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, grog@freebie.lemis.com
Subject: Re: bin/4943: /stand/sysinstall corrupts /etc/rc.conf 
Date: Tue, 04 Nov 1997 23:21:09 -0800

 Is this with 2.2.5?  The problem you're describing sounds an
 awful lot like the already well-documented ERRATA for 2.2.2.
 
 					Jordan
State-Changed-From-To: open->closed 
State-Changed-By: hoek 
State-Changed-When: Thu Dec 25 02:28:40 PST 1997 
State-Changed-Why:  
This was a known bug in 2.2.2 sysinstall.  You must have upgraded 
to 2.2.5 without upgrading /stand specifically. 
>Unformatted:
