Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2003 22:35:40 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Sheldon Hearn <sheldonh@starjuice.net>, current@FreeBSD.ORG
Subject:   Re: Seat-belt for source upgrades from stable to current
Message-ID:  <p05200f31ba5e4c0bbc26@[128.113.24.47]>
In-Reply-To: <20030129191822.GO78848@starjuice.net>
References:  <20030129191822.GO78848@starjuice.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 9:18 PM +0200 1/29/03, Sheldon Hearn wrote:
>Can anyone think of a good way to implement an installworld /
>installkernel seat-belt for source upgrades from stable to current?
>
>What I'm looking for is a way for installworld and installkernel
>in the current source to look for some signature in the target
>filesystem that suggests that a stable world is about to be
>upgraded to current.

How about requiring the user to touch some file in / or /boot which
indicates the branch-tag that's acceptable for installworlds?  Then
you just need to propagate the tag from the 'cvs co' stage to some
file under /usr/src (such as /usr/src/CVS/Tag ).

So, maybe compare /usr/src/CVS/Tag to /boot/BRANCH_TAG, where the
second file has to be typed in by the user, by hand.  Eh, maybe
/boot isn't the right place for it.  Well, maybe /.branch_tag

>[1] Guess who just trashed a stable installation for the 3rd time
>     in 3 years today?

Well, I almost would have done the same thing in my latest 4.7
install, but when I cd'ed into sys/i386/conf I thought it was
odd that there was a GENERIC.hints file sitting there...  If
it wasn't for my desire to compile an SMP kernel instead of
GENERIC, I might not have noticed until it was too late!!

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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