gzip-exp.xml 746 B

12345678910111213141516
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin
  4. &amp;&amp; rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip:</userinput> The reason
  5. we don't simply use <quote>mv</quote> to move the files to the new location
  6. is because gunzip is a hardlink to gzip. On older distributions you can't
  7. move a hardlink to another partition (and it's very possible that $LFS and
  8. $LFS/usr are separate partitions). With more recent distributions this
  9. isn't a problem. If you run mv to move hardlinks across partitions it'll
  10. just do a regular <quote>cp</quote> and discard the hardlink. But, we
  11. can't assume that every host distribution has a new enough kernel and
  12. fileutils that works this way.</para>
  13. </sect2>