From a84c732af97df6651053c247df62b0e43f27fbb5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 11 Jun 2023 01:48:21 +0800 Subject: [PATCH] loongarch: chapter04: Always create lib64 We may revise it again we we add ilp32 support. --- chapter04/addinguser.xml | 5 +---- chapter04/creatingminlayout.xml | 8 ++------ chapter07/changingowner.xml | 5 +---- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index 2db1f756f..3a32fb987 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 the directories under $LFS by making lfs the 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,lib64,var,etc,bin,sbin,tools} In some host systems, the following su command does not complete properly and suspends the login for the &lfs-user; user to the background. diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index 90c825577..19919d5c7 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -21,15 +21,11 @@ Create the required directory layout by issuing the following commands as root: -mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin} +mkdir -pv $LFS/{etc,lib64,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 +done Programs in will be compiled with a cross-compiler (more details can be found in section root by running the following command: -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 +chown -R root:root $LFS/{usr,lib,lib64,var,etc,bin,sbin,tools}