Subject: Re: updating, build and install order
To: Ben Harris <bjh21@netbsd.org>
From: Frederick Bruckman <fredb@immanent.net>
List: current-users
Date: 06/20/2003 13:39:50
On Fri, 20 Jun 2003, Ben Harris wrote:

> In article <Pine.NEB.4.53.0306201052270.26139@rapture.immanent.net> you write:
>
> > For another,
> >"cp" plus "mv" is not the same thing as "install -pr" -- you're going
> >to end up overwriting your backup kernel in "/onetbsd".
>
> How so?  mv usually issues a rename() system call, which shouldn't clobber
> the hard-linked file.  If it does, so will install.

OK, then. I messed it up in my testing somehow.

> > To get the
> >same effect, you'd need to unlink "/netbsd" before the copy.
>
> That's obviously silly, since it would leave the system without /netbsd for
> a moment.

It's not silly at all. That's what /netbsd.old is for.

> >Thirdly,
> >the single "install" command, besides being more elegant, also sets
> >the permissions consistently.
>
> This is true.

Frederick