From owner-cvs-all@FreeBSD.ORG Fri Mar 17 20:20:38 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5825316A420; Fri, 17 Mar 2006 20:20:38 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id F27D143D46; Fri, 17 Mar 2006 20:20:37 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.199] ([10.0.0.199]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id k2HKKbo7028991 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 17 Mar 2006 12:20:37 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <441B1A15.60506@errno.com> Date: Fri, 17 Mar 2006 12:20:37 -0800 From: Sam Leffler Organization: Errno Consulting User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: John-Mark Gurney References: <200603171628.k2HGSCN8083438@repoman.freebsd.org> <20060317191059.GK35129@funkthat.com> In-Reply-To: <20060317191059.GK35129@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Dag-Erling Smorgrav Subject: Re: cvs commit: src/etc/rc.d Makefile kernel X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 20:20:38 -0000 John-Mark Gurney wrote: > Dag-Erling Smorgrav wrote this message on Fri, Mar 17, 2006 at 16:28 +0000: >> des 2006-03-17 16:28:12 UTC >> >> FreeBSD src repository >> >> Modified files: >> etc/rc.d Makefile >> Added files: >> etc/rc.d kernel >> Log: >> This script symlinks /boot/kernel to the directory that contains the kernel >> you booted from, unless /boot/kernel already exists and is not a symlink. >> This should only affect people like me who juggle multiple kernels and >> have KODIR = /boot/${KERN_IDENT} in /etc/make.conf to keep them apart. > > What part of the tree assumes that /boot/kernel exists? Shouldn't they > be using a dirname'd version of kern.bootfile, which would make this > change unnecessary? > Makefiles in modules and in built kernels do I believe. When I did the recent make release+sysinstall mods there was a bunch of discussion about whether /boot/kernel could be eliminated and/or made a symlink. In the end I took the conservative route and mv'd the installed kernel to /boot/kernel. For compatibility with des's change sysinstall could just setup a symlink. However it might also be good to leave the installed kernel around in case of a calamity (probably depends mostly on disk space). Another interesting approach is to hack loader to do something more intelligent when /boot/kernel is not present (e.g. Ed Maste has mods to pick a up/smp kernel automatically). Sam