2002-02-02 17:04:30 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2002-03-05 20:13:31 +00:00
|
|
|
<para><userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
|
|
|
|
&& rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip:</userinput> The reason
|
|
|
|
we don't simply use <quote>mv</quote> to move the files to the new location
|
|
|
|
is because gunzip is a hardlink to gzip. On older distributions you can't
|
2002-02-02 17:04:30 +00:00
|
|
|
move a hardlink to another partition (and it's very possible that $LFS and
|
2002-02-14 14:58:00 +00:00
|
|
|
$LFS/usr are separate partitions). With more recent distributions this
|
2002-02-02 17:04:30 +00:00
|
|
|
isn't a problem. If you run mv to move hardlinks across partitions it'll
|
|
|
|
just do a regular <quote>cp</quote> and discard the hardlink. But, we
|
|
|
|
can't assume that every host distribution has a new enough kernel and
|
|
|
|
fileutils that works this way.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|