From owner-freebsd-bugs Tue Nov 4 18:50:06 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA02245 for bugs-outgoing; Tue, 4 Nov 1997 18:50:06 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA02235; Tue, 4 Nov 1997 18:50:01 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 4 Nov 1997 18:50:01 -0800 (PST) Resent-Message-Id: <199711050250.SAA02235@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, grog@lemis.com 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 ; 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 Reply-To: grog@lemis.com To: FreeBSD-gnats-submit@FreeBSD.ORG, grog@freebie.lemis.com X-Send-Pr-Version: 3.2 Subject: bin/4943: /stand/sysinstall corrupts /etc/rc.conf Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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: