Re: [rfc] replacing /boot/kernel.old with a unique directory name

From: Alexander Best <arundel_at_freebsd.org>
Date: Sat, 13 Aug 2011 20:04:04 +0000
On Sat Aug 13 11, Chris Rees wrote:
> On 13 August 2011 20:51, Alexander Best <arundel_at_freebsd.org> wrote:
> > hi there,
> >
> > i just had the following idea: how about instead of copying the current kernel
> > to /boot/kernel.old and then installing the new one under /boot/kernel as the
> > results of target installkernel, we create a unique directory name for the old
> > kernel?
> >
> > something like /boot/kernel-r${revision}-${/dev/random}?
> >
> > that would let people not only boot the previous kernel, but all kernels that
> > have been replaced by target installkernel. this would make tracking issues,
> > which have been introduced by a certain commit much easier, imho.
> >
> > i don't think implementing this logic would be that difficult. the only problem
> > i see is with ${/dev/random} in the case where people are running a kernel
> > without /dev/{u}random support.
> >
> > cheers.
> > alex
> 
> mktemp?

ahh. nice. unless mktemp(1) relies on  "device random", that sounds like a good
solution. :)

> 
> Chris
Received on Sat Aug 13 2011 - 18:04:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC