Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 1997 09:01:01 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Francisco Reyes <francisco@natserv.com>
Cc:        FreeBSD questions <questions@FreeBSD.ORG>
Subject:   Re: Do I need specialprogram to view/edit /etc/rc.conf
Message-ID:  <19971106090101.01389@lemis.com>
In-Reply-To: <199711050858.DAA22012@federation.addy.com>; from Francisco Reyes on Wed, Nov 05, 1997 at 04:01:36AM -0400
References:  <199711050858.DAA22012@federation.addy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 05, 1997 at 04:01:36AM -0400, Francisco Reyes wrote:
> The rc.conf that comes with 2.2.2 looks dissorganized when I do "less"
> or cat. I tried looking at the rc.conf on the "live" file system CD and
> it was the same. By dissorganized I mean that thee are more than one
> entry per line and it is hard to find or read anything.
>
> Were these files corrupted on 2.2.2?

I put in a bug report yesterday.  If you run /stand/sysinstall,
there's a very good chance of overwriting your /etc/rc.conf with junk.
Make a copy before running sysinstall.  I'm appending the text of the
bug report.

Greg

>Submitter-Id:   current-users
>Originator:     Greg Lehey
>Organization:   LEMIS, PO Box 460, Echunga SA, Australia
>Confidential:   no
>Synopsis:       After running /stand/sysinstall from command line, /etc/rc.conf is corrupted
>Severity:       serious
>Priority:       medium
>Category:       bin
>Release:        FreeBSD 2.2.5-RELEASE i386
>Class:          sw-bug
>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 \n 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.





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