From owner-freebsd-questions Wed Nov 5 14:34:13 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA14693 for questions-outgoing; Wed, 5 Nov 1997 14:34:13 -0800 (PST) (envelope-from owner-freebsd-questions) 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 OAA14646 for ; Wed, 5 Nov 1997 14:32:31 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA29017; Thu, 6 Nov 1997 09:01:01 +1030 (CST) Message-ID: <19971106090101.01389@lemis.com> Date: Thu, 6 Nov 1997 09:01:01 +1030 From: Greg Lehey To: Francisco Reyes Cc: FreeBSD questions Subject: Re: Do I need specialprogram to view/edit /etc/rc.conf References: <199711050858.DAA22012@federation.addy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199711050858.DAA22012@federation.addy.com>; from Francisco Reyes on Wed, Nov 05, 1997 at 04:01:36AM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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.