From nobody@FreeBSD.org  Fri Jan 18 13:05:59 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8B73937B419
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Jan 2002 13:05:59 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g0IL5xY25954;
	Fri, 18 Jan 2002 13:05:59 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200201182105.g0IL5xY25954@freefall.freebsd.org>
Date: Fri, 18 Jan 2002 13:05:59 -0800 (PST)
From: Antony <antony.pollard@btinternet.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Sysinstall fails to read existing conf files
X-Send-Pr-Version: www-1.0

>Number:         34046
>Category:       i386
>Synopsis:       Sysinstall fails to read existing conf files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 18 13:10:00 PST 2002
>Closed-Date:    Mon Jan 21 00:30:30 PST 2002
>Last-Modified:  Mon Jan 21 00:31:31 PST 2002
>Originator:     Antony
>Release:        4.4-release
>Organization:
>Environment:
>Description:
when using sysinstall during inastall and after to configure your system it is possible to make it write lines in config files that for example to disable something and then enable it.

it seems sysinstall is not reading existing conf files and seeing if there is a line enabeling or disableing something.

and good example is:

SENDMAIL_ENABLE="NO"
SENDMAIL_ENABLE="YES"
taken from rc.conf after installing Freebsd on my system.

this also happens to anything that you configure with sysinstall such as configuration of network interfaces or enabeling/disabeling services
>How-To-Repeat:
load up sysinstall and choose configure then networking then services ( i think) and enable sendmail. exit out of sysinstall and then do the same but disable sendmail. look in rc.conf and u will see that it has a line enabeling sendmail and the disabeling it which is quite pointless. This can also happen during the initial install of FreeBSDif u tell sendmail not to be enabled but it will still load on the first boot.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Antony <antony.pollard@btinternet.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/34046: Sysinstall fails to read existing conf files
Date: Mon, 21 Jan 2002 10:29:02 +0200

 On Fri, Jan 18, 2002 at 01:05:59PM -0800, Antony wrote:
 > 
 > >Number:         34046
 > >Category:       i386
 > >Synopsis:       Sysinstall fails to read existing conf files
 [snip]
 > >How-To-Repeat:
 > load up sysinstall and choose configure then networking then services ( i
 > think) and enable sendmail. exit out of sysinstall and then do the same
 > but disable sendmail. look in rc.conf and u will see that it has a line
 > enabeling sendmail and the disabeling it which is quite pointless. This
 > can also happen during the initial install of FreeBSDif u tell sendmail
 > not to be enabled but it will still load on the first boot.
 
 This is not really pointless; it helps preserve the history of changes,
 so that later it is *very* easy to restore the configuration as it was
 before the most recent round of changes (or, for that matter, before
 any round of changes done via sysinstall).  The additional lines do no
 harm, yet they might prove extremely useful in the case of a mistake made
 during editing.
 
 There is indeed the possibility that a hasty sysadmin editing the rc.conf
 file by hand might change a value at the first occcurrence of a variable,
 and fail to notice that the same variable is assigned a different value
 further down, but I think this would fall under the category of acceptable
 risks of pilot error :)  In general, I believe that sysinstall's behavior
 of keeping the old values is very useful and should be kept unchanged.
 
 G'luck,
 Peter
 
 -- 
 When you are not looking at it, this sentence is in Spanish.
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Mon Jan 21 00:30:30 PST 2002 
State-Changed-Why:  
Not really a bug, rather an effort on sysinstall's part to ease 
rolling back the changes. 

Still, thanks for the problem report and for your interest 
in using and enhancing FreeBSD! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34046 
>Unformatted:
