Subject: Re: on not shooting yourself in the foot during upgrade..
To: Bill Stouder-Studenmund <wrstuden@NetBSD.org>
From: George Michaelson <ggm@apnic.net>
List: current-users
Date: 03/20/2007 08:51:02
On Mon, 19 Mar 2007 09:58:03 -0800
Bill Stouder-Studenmund <wrstuden@NetBSD.org> wrote:

> On Mon, Mar 19, 2007 at 03:19:10PM +1000, George Michaelson wrote:
> > 
> > I am probably very confused, but I don't understand why /bin/sh
> > and /sbin/init depend on the shared libs, but didn't die during the
> > upgrade. Is there something special about their COW state or
> > something
> 
> install unlinks the old file then writes a new one. Thus /bin/sh and 
> /sbin/init are using the old, unmodified versions of the relevant
> libs.
> 
> cp copies, and as such will overwrite the running executable.
> Explosions then happen.

I'm doing a pax -zrpe off the sets/*.tgz which I believe also does an
unlink.

What I actually tripped over here was of course the iconv libc/ld.so
thing.

-G