diff options
Diffstat (limited to 'chapter04/creatingminlayout.xml')
-rw-r--r-- | chapter04/creatingminlayout.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index 749ce84fa..50c431324 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -20,11 +20,25 @@ <para>Create the required directory layout by running the following as <systemitem class="username">root</systemitem>:</para> -<screen><userinput>mkdir -pv $LFS/{bin,etc,lib,sbin,usr,var} +<screen><userinput>mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin} + +for i in bin lib sbin; do + ln -sv usr/$i $LFS/$i +done + case $(uname -m) in x86_64) mkdir -pv $LFS/lib64 ;; esac</userinput></screen> + <note> + <para> + The above command is correct. The <command>ln</command> command has + a few syntactic versions, so be sure to check + <command>info coreutils ln</command> and <filename>ln(1)</filename> + before reporting what you may think is an error. + </para> + </note> + <para>Programs in <xref linkend="chapter-temporary-tools"/> will be compiled with a cross-compiler (more details in section <xref linkend="ch-tools-toolchaintechnotes"/>). In order to separate this |