Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Nov 1997 13:10:42 +1030 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG, grog@freebie.lemis.com
Subject:   bin/4943: /stand/sysinstall corrupts /etc/rc.conf
Message-ID:  <199711050240.NAA18329@freebie.lemis.com>
Resent-Message-ID: <199711050250.SAA02235@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov  4 18:50:00 PST 1997
>Last-Modified:
>Originator:     Greg Lehey
>Organization:
LEMIS, PO Box 460, Echunga SA, Australia
>Release:        FreeBSD 2.2.5-RELEASE i386
>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.

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711050240.NAA18329>