From owner-cvs-usrsbin Mon Nov 20 19:29:27 1995 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA17186 for cvs-usrsbin-outgoing; Mon, 20 Nov 1995 19:29:27 -0800 Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA17173 ; Mon, 20 Nov 1995 19:29:11 -0800 Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.6.12/8.6.12) id TAA23634; Mon, 20 Nov 1995 19:27:51 -0800 From: "Rodney W. Grimes" Message-Id: <199511210327.TAA23634@GndRsh.aac.dev.com> Subject: Re: cvs commit: src/usr.sbin/syslogd syslogd.c To: peter@jhome.dialix.com (Peter Wemm) Date: Mon, 20 Nov 1995 19:27:51 -0800 (PST) Cc: davidg@Root.COM, guido@gvr.win.tue.nl, CVS-commiters@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org In-Reply-To: from "Peter Wemm" at Nov 21, 95 07:59:29 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1108 Sender: owner-cvs-usrsbin@FreeBSD.ORG Precedence: bulk ... > > Or perhaps enhance the rename to use /kernel.N, N being a number, simply > > move it to one higher than the highest existing file. > > Hmm. Another thought... > if [ `sysctl kern.bootfile` == /kernel ]; then > mv /kernel /kernel.old > sysctl -w kern.bootfile=/kernel.old > fi > install -c .. kernel /kernel That was my previosly posted patch, it has the problem of if you make install twice /kernel.old will no longer be correct, thus my /kernel.N proposal to fix that. > Simply dont save non-booted kernels.. :-) > > Anyway, this is not rocket science, it can be fixed to do the right things > > rather trivially. > > Yeah, Fun fun fun! And there's probably a hundred ways to do it, and > probably none of them would be agreeable to everybody... I had forgotten about the kvm_db file, hummm.... I think libkvm stats kern.bootfile and if it does not match the db file it does an nlist, or at least that is what I recall it doing. -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD