From root@gina.neland.dk  Tue Feb 27 15:32:48 2001
Return-Path: <root@gina.neland.dk>
Received: from ns.internet.dk (ns.internet.dk [194.19.140.1])
	by hub.freebsd.org (Postfix) with ESMTP id 4313137B718
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Feb 2001 15:32:46 -0800 (PST)
	(envelope-from root@gina.neland.dk)
Received: (from uucp@localhost)
	by ns.internet.dk (8.11.2/8.11.2) id f1RNWj492619
	for FreeBSD-gnats-submit@freebsd.org.AVP; Wed, 28 Feb 2001 00:32:45 +0100 (CET)
	(envelope-from root@gina.neland.dk)
Received: (from uucp@localhost)
	by ns.internet.dk (8.11.2/8.11.2) with UUCP id f1RNWi292613
	for FreeBSD-gnats-submit@freebsd.org; Wed, 28 Feb 2001 00:32:44 +0100 (CET)
	(envelope-from root@gina.neland.dk)
Received: from gina.neland.dk (gina.neland.dk [192.168.0.14])
	by arnold.neland.dk (8.11.1/8.11.0) with ESMTP id f1RNWZx17902
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Feb 2001 00:32:35 +0100 (CET)
	(envelope-from root@gina.neland.dk)
Received: (from root@localhost)
	by gina.neland.dk (8.11.2/8.11.2) id f1RNXgt33452;
	Wed, 28 Feb 2001 00:33:42 +0100 (CET)
	(envelope-from root)
Message-Id: <200102272333.f1RNXgt33452@gina.neland.dk>
Date: Wed, 28 Feb 2001 00:33:42 +0100 (CET)
From: leifn@neland.dk
Reply-To: leifn@neland.dk
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Suggest having kernel configs as symlinks out of /usr/src
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         25437
>Category:       docs
>Synopsis:       kernel configs are the only precious files in /usr/src/sys
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 27 15:40:01 PST 2001
>Closed-Date:    Tue Sep 4 04:58:06 PDT 2001
>Last-Modified:  Tue Sep 04 04:59:56 PDT 2001
>Originator:     Leif Neland
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD gina.neland.dk 5.0-CURRENT FreeBSD 5.0-CURRENT #9: Tue Feb 20 07:08:53 CET 2001 root@gina.neland.dk:/usr/obj/usr/src/sys/GINA i386


>Description:
	/usr/src can be considered as not important to backup, as it can
just be cvsup'ped again.
Sometime it is suggested to remove /usr/src and cvsup it if it is believed
to be hosed.

However, kernel config files is usually stored in /usr/src/sys/i386/conf,
and it is easy to forget to take backup of the kernel configs.

If the config files were just symlinks to somewhere more safe, like
/etc/kernconf, or /usr/local/etc/kernconf eg, it would be more difficult to
shoot oneself in the foot.


>How-To-Repeat:
	rm -r /usr/src/sys
	cvsup
	cd /usr/src/sys/i386/conf
	config MYVERYSPECIALKERNELCONFIGITTOOKLONGTIMETOMAKE
	curse :-)

>Fix:

	
	Either just make the suggestion in a manual, or (more agressively)
	make config complain if the configfile is not a symlink.

	Just as config hints "Don't forget to do a 'make depend'", it could 
	hint "It would be safer to have the kernel config be a symlink
	to outside /usr/src". 
>Release-Note:
>Audit-Trail:

From: "Peter Avalos" <pavalos@theshell.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <leifn@neland.dk>
Cc:  
Subject: Re: docs/25437: kernel configs are the only precious files in /usr/src/sys
Date: Wed, 28 Feb 2001 13:59:34 -0600

 Or maybe you could have a make option in /etc/make.conf that allows you to
 define an optional kernel config file similar to the new SENDMAIL_MC flag so
 it doesn't get wiped out.
 
 Pete
 
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Tue Sep 4 04:58:06 PDT 2001 
State-Changed-Why:  
The handbook mentions that it might be safer to symlink your kernel 
config somewhere out of /usr/src in case you accidently overwrite your 
kernel config.  Thanks for the submission! 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html 


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