From efcb3933433838b71f3a4a53ec1ac6d899aaec0b Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 3 May 2020 21:02:51 +0000 Subject: Make the new book git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter04/creatingminlayout.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 chapter04/creatingminlayout.xml (limited to 'chapter04/creatingminlayout.xml') diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml new file mode 100644 index 000000000..44cca8d22 --- /dev/null +++ b/chapter04/creatingminlayout.xml @@ -0,0 +1,32 @@ + + + %general-entities; +]> + + + + + Creating the Minimal directory layout in LFS filesystem + + The first task performed in the LFS partition is to create a minimal + directory hierarchy so that programs compiled in may be installed in their final + location. This is needed so that those temporary programs be overwritten + when rebuilding them in . + + Create the required directory layout by running the following as + root: + +mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin,lib64} + + Programs in will be compiled + with a cross-compiler (more details in section ). In order to separate this + cross-compiler from the other programs, it will be installed in a special + directory. Create this directory with: + +mkdir -pv $LFS/tools + + -- cgit v1.2.3-54-g00ecf From 70f0882d4c658c6d1355218fccf821ca31d0af18 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Sun, 14 Jun 2020 21:03:26 +0000 Subject: No /lib64 on i686 git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11941 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter04/addinguser.xml | 5 ++++- chapter04/creatingminlayout.xml | 5 ++++- chapter07/changingowner.xml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) (limited to 'chapter04/creatingminlayout.xml') 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 all directories under $LFS by making lfs the directory owner: -chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools} +chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools} +case $(uname -m) in + x86_64) chown -v lfs $LFS/lib64 ;; +esac 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 44cca8d22..731d21c54 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -19,7 +19,10 @@ Create the required directory layout by running the following as root: -mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin,lib64} +mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin} +case $(uname -m) in + x86_64) mkdir -pv $LFS/lib64 ;; +esac Programs in will be compiled with a cross-compiler (more details in section root by running the following command: -chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools} +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 -- cgit v1.2.3-54-g00ecf