Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 1995 19:27:51 -0800 (PST)
From:      "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
To:        peter@jhome.dialix.com (Peter Wemm)
Cc:        davidg@Root.COM, guido@gvr.win.tue.nl, CVS-commiters@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org
Subject:   Re: cvs commit: src/usr.sbin/syslogd syslogd.c
Message-ID:  <199511210327.TAA23634@GndRsh.aac.dev.com>
In-Reply-To: <Pine.BSF.3.91.951121074351.17368B-100000@jhome.DIALix.COM> from "Peter Wemm" at Nov 21, 95 07:59:29 am

next in thread | previous in thread | raw e-mail | index | archive | help
...
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511210327.TAA23634>