Opened 13 years ago
Closed 13 years ago
#2982 closed defect (invalid)
Replace "uncompress" with a symlink
Reported by: | Marcel van den Boer | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.1 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | gzip, uncompress |
Cc: |
Description
During the installation of gzip (chapter 6), the file /bin/uncompress is moved to /usr/bin. However, because uncompress is a hard link to /bin/gunzip, this move fails if /usr is on a separate partition.
I've tagged this issue as a defect, because in the chapter "Creating a New Partition", LFS instructs the reader to consider putting /usr on a separate partition, which clearly is not possible without modifying LFS a bit.
The solution is simple. In the instructions for installing gzip in chapter 6:
mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin
should become:
mv -v /bin/{gzexe,zcmp,zdiff,zegrep} /usr/bin mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin rm -rvf /bin/uncompress ln -sv ../../bin/gunzip /usr/bin/uncompress
Change History (3)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
I stand corrected. Somehow, mv did not behave like this on my machine. Strange.
Thanks.
comment:3 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
mv does copy the file to a separate partition.
In the case of a mv to a separate partition, the system does a cp and an rm and the hard link is severed.