aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter04/addinguser.xml5
-rw-r--r--chapter04/creatingminlayout.xml5
-rw-r--r--chapter07/changingowner.xml5
3 files changed, 12 insertions, 3 deletions
diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml
index 7ee10bef0..6a163f46b 100644
--- a/chapter04/addinguser.xml
+++ b/chapter04/addinguser.xml
@@ -80,7 +80,10 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
all directories under <filename class="directory">$LFS</filename> by making
<systemitem class="username">lfs</systemitem> the directory owner:</para>
-<screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools}</userinput></screen>
+<screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}
+case $(uname -m) in
+ x86_64) chown -v lfs $LFS/lib64 ;;
+esac</userinput></screen>
<para>If a separate working directory was created as suggested, give
user <systemitem class="username">lfs</systemitem> ownership of this
diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml
index 44cca8d22..731d21c54 100644
--- a/chapter04/creatingminlayout.xml
+++ b/chapter04/creatingminlayout.xml
@@ -19,7 +19,10 @@
<para>Create the required directory layout by running the following as
<systemitem class="username">root</systemitem>:</para>
-<screen><userinput>mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin,lib64}</userinput></screen>
+<screen><userinput>mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin}
+case $(uname -m) in
+ x86_64) mkdir -pv $LFS/lib64 ;;
+esac</userinput></screen>
<para>Programs in <xref linkend="chapter-temporary-tools"/> will be compiled
with a cross-compiler (more details in section <xref
diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml
index e376f9f6b..3c39e4214 100644
--- a/chapter07/changingowner.xml
+++ b/chapter07/changingowner.xml
@@ -33,6 +33,9 @@
user <systemitem class="username">root</systemitem> by running the following
command:</para>
-<screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools}</userinput></screen>
+<screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
+case $(uname -m) in
+ x86_64) chown -R root:root $LFS/lib64 ;;
+esac</userinput></screen>
</sect1>