Re: Dump commands
| Newsgroups | gmane.linux.lfs.support |
|---|---|
| Message-ID | <[email protected]> |
On 8/13/26 06:58, Rainer Fiebig ([email protected] via lfs-support Mailing List) wrote: > Am 13.08.26 um 03:41 schrieb Bruce Dubbs ([email protected] via > lfs-support Mailing List): >> On 8/12/26 2:51 PM, Pocket ([email protected] via lfs-support >> Mailing List) wrote: >>> > > / snip / > >>> case $(uname -m) in >>> x86_64) chown -v lfs >>> $LFS/lib64 ;; >>> esac > / snip / > > Successful execution of > > chown -v lfs $LFS/lib64 > > does not depend on whether the machine is x86_64 or not but whether > directory "$LFS/lib64" exists or not. That directory was already > created (or not) in ch. 4.2: > > case $(uname -m) in > x86_64) mkdir -pv $LFS/lib64 ;; > esac > > So the test in ch. 4.3 should _not_ be > > case $(uname -m) in ... > > but rather > > if [[ -d $LFS/lib64 ]]; then > chown -v lfs $LFS/lib64 > fi > > Apart from that I'm not sure whether using multi-way decision-test > "case" for a one-way test is really a good choice for an educational > project. At least not without a default case. > > BTW: I think that the dot after the last digit in chapter-headings like > 4.3. Adding the LFS User > is wrong or at least quite unusual. > > > Rainer > > I have no idea how to grok what you posted. The segment I posted was to informational as it is missing the trailing '\' But since you brought it up.... 4.2. Creating a Limited Directory Layout in the LFS Filesystem Note The LFS editors have deliberately decided not to use a /usr/lib64 directory. Several steps are taken to be sure the toolchain will not use it. If for any reason this directory appears (either because you made an error in following the instructions, or because you installed a binary package that created it after finishing LFS), it may break your system. You should always be sure this directory does not exist. But the book does create lib64 directories, then tells you is will break your system. -- Hindi madali ang maging ako -- http://lists.linuxfromscratch.org/sympa/info/lfs-support Unsubscribe: See the above information page