static bzip2 & hardlinks problem

Bill Maltby LFS Related lfsbill at wlmcs.com
Mon May 13 14:41:05 PDT 2002


Gotcha! I'm on board now.

Bill Maltby
billm at wlmcs.com

On Mon, 13 May 2002, Christophe Devine wrote:

> Bill Maltby LFS Related wrote:
> 
> > > Here's a simple command which solves the problem of moving hardlinks
> > > on old distros:
> > > 
> > > mv $LFS/usr/bin/{bzcat,bunzip2,bzip2,bzip2recover} $LFS/bin &&
> > > cp $LFS/usr/bin/{bzless,bzmore} $LFS/bin &&
> > > rm $LFS/usr/bin/{bzless,bzmore}
> > > 
> > > I have tested this command on RH 6.0;
> > > it did fix the bug reported on lfs-dev.
> 
> > Are you sure that's how you want to fix it?
> 
> I took the same approach as the gzip hardlink fix:
> 
> cp $LFS/usr/bin/{gunzip,gzip} $LFS/bin &&
> rm $LFS/usr/bin/{gunzip,gzip}
> 
> > <snip my concerns re i-nodes may change & related>

> 
> That's right; however bzless and bzmore are going to be overwritten
> in chapter 6 with the proper hardlinks, so it's probably not an issue.
> Furthermore, with chapter 5 and 6 separated, bzless and bzmore never
> 'pollute' $LFS/bin, only $LFS/static/bin.

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-book' in the subject header of the message



More information about the lfs-book mailing list