Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2003 10:07:37 -0800
From:      Tim Kientzle <kientzle@acm.org>
To:        "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: HEADS UP: /bin and /sbin are now dynamically linked
Message-ID:  <3FC4EBE9.40109@acm.org>
In-Reply-To: <20031126161637.GO12248@over-yonder.net>
References:  <20031123012222.GB11523@dragon.nuxi.com> <p06002003bbe5c0f30237@[10.0.1.2]> <20031123042635.GB677@saboteur.dek.spc.org> <3FC16644.7070005@acm.org> <20031124114006.GA60761@dragon.nuxi.com> <p06002002bbe7fd7ac23c@[128.113.24.47]> <20031124210748.GG15294@wombat.localnet> <20031124224144.GC67578@dragon.nuxi.com> <20031125160934.GH12248@over-yonder.net> <p0600200bbbe94e00a24a@[128.113.24.47]> <20031126161637.GO12248@over-yonder.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew D. Fuller wrote:
> On Tue, Nov 25, 2003 at 01:41:53PM -0500 I heard the voice of
> Garance A Drosihn, and lo! it spake thus:
> 
>>It is a bit more complicated than that, because programs may
>>include embedded references to other files.  So, I think
>>some developer would *have* to do a little up-front work for
>>any program that would be optionally-added to /rescue.
> 
> 
> Oh, sure; nothing's ever as easy as it should be   :)
> 
> The advantage of this method is it's simple, cheap, automatic, and lets
> us say "You can try setting ADDITIONAL_RESCUE=usr.sbin/foo in make.conf
> and it may work", without putting extra burden on developers or people
> who don't wanna.  It may only be a fifth of a loaf, but...

... but a /rescue that doesn't work is useless.

The one critical property of /rescue is that it MUST WORK
when /bin and /sbin are both hosed.  Your technique here
cannot gaurantee this.

Testing /rescue is not a simple exercise.  You must first
break both /bin and /sbin and unmount /usr.  You must then
test EVERY part of /rescue, since adding or removing one
program can potentially break other programs (whose hard-coded
references to that program may need to be adjusted).  There
are (fortunately) a few shortcuts (I spent a long time poring
over the output of 'strings /rescue/rescue' to check for hard-coded
references), but it's still not pretty.

Tim



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