diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index 49fb43466..5c558b301 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -80,10 +80,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs all directories under $LFS by making lfs the directory owner: -chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} -case $(uname -m) in - x86_64) chown -v lfs $LFS/lib64 ;; -esac +chown -v lfs $LFS/{usr{,/*},lib*,boot,var,etc,bin,sbin,tools} If a separate working directory was created as suggested, give user lfs ownership of this diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index cc640a450..4da8453c4 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -20,15 +20,18 @@ Create the required directory layout by running the following as root: -mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin} +mkdir -pv $LFS/{boot,etc,var} $LFS/usr/{bin,lib,sbin} for i in bin lib sbin; do ln -sv usr/$i $LFS/$i -done +done -case $(uname -m) in - x86_64) mkdir -pv $LFS/lib64 ;; -esac + Some targets (for example, x86_64) needs + /lib64 directory. If you are + building for one of those targets, create it as + root: + +mkdir -pv $LFS/lib64 Programs in will be compiled with a cross-compiler (more details in section