From owner-svn-src-projects@FreeBSD.ORG Mon Feb 9 16:09:19 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D81DD5FD; Mon, 9 Feb 2015 16:09:19 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1DA66E3; Mon, 9 Feb 2015 16:09:19 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-54-116-245.nwrknj.fios.verizon.net [173.54.116.245]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 6B365B945; Mon, 9 Feb 2015 11:09:17 -0500 (EST) From: John Baldwin To: Baptiste Daroussin Subject: Re: svn commit: r278447 - projects/release-pkg/release/packages/kernel Date: Mon, 09 Feb 2015 11:07:19 -0500 Message-ID: <2379227.vPTf1TCfaA@ralph.baldwin.cx> User-Agent: KMail/4.14.2 (FreeBSD/10.1-STABLE; KDE/4.14.2; amd64; ; ) In-Reply-To: <201502091025.t19APxwK057568@svn.freebsd.org> References: <201502091025.t19APxwK057568@svn.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 09 Feb 2015 11:09:17 -0500 (EST) Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2015 16:09:19 -0000 On Monday, February 09, 2015 10:25:59 AM Baptiste Daroussin wrote: > Author: bapt > Date: Mon Feb 9 10:25:58 2015 > New Revision: 278447 > URL: https://svnweb.freebsd.org/changeset/base/278447 > > Log: > Rerunning kldxref after installing the kernel is still needed as > rc.d/kldxref will happen too late > > Added: > projects/release-pkg/release/packages/kernel/post-install > - copied unchanged from r278395, > projects/release-pkg/release/packages/kernel/post-install > > Copied: projects/release-pkg/release/packages/kernel/post-install (from > r278395, projects/release-pkg/release/packages/kernel/post-install) > =========================================================================== > === --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ projects/release-pkg/release/packages/kernel/post-install Mon Feb 9 > 10:25:58 2015 (r278447, copy of r278395, > projects/release-pkg/release/packages/kernel/post-install) @@ -0,0 +1 @@ > +/usr/sbin/kldxref /boot/kernel Hmm, are you hardcoding /boot/kernel as the location for kernels? I like to keep an up-to-date GENERIC on all my boxes at /boot/kernel.GENERIC along with /boot/kernel which runs the machine's "custom" config. I do think I like that the packages default to /boot/kernel in general (so I can 'pkg install kernel- ' to pick a specific conf), but it might be nice to be able to install a fallback kernel under an alternate name. Also, do you have a graceful way of switching configs? That is, if kernel-FOO is installed at /boot/kernel and I want to switch to kernel-BAR, do you just have to delete FOO and install BAR? That's fine if so, though there is a window where you don't have a kernel if you crash / power-failure. :-P Not sure how easy it would be to be able to move the FOO kernel to kernel.old in that case and install BAR as /boot/kernel? On a related note, I assume that for base packages you will keep the behavior of preserving /boot/loader.old and /libexec/ld-elf.so.1.old each time the respective file changes? (I think those are the only files in userland with that kind of special magic.) -- John Baldwin