From 6c311ec76ff60f275a336354a6661193390753c2 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Tue, 27 May 2025 11:41:13 +0800 Subject: [PATCH 1/3] changingowner: Exclude symlinks from chown Make this consistent with addinguser. Applying chown to a symlink actually affects its target, and here the targets are in $LFS/usr and already covered. --- chapter07/changingowner.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml index 178c7836e..f29932694 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,7 +33,7 @@ user root by running the following command: -chown --from &lfs-username; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-username; -R root:root $LFS/{usr,var,etc,tools} case $(uname -m) in x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;; esac From 30ec5ae0ea81e671f0bbe7c65c840957f422ac02 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 31 May 2025 19:27:05 +0800 Subject: [PATCH 2/3] gcc-pass2: Remove empty line --- chapter06/gcc-pass2.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 13baefa48..9bb8332c7 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -100,8 +100,7 @@ cd build --disable-libssp \ --disable-libvtv \ --enable-languages=c,c++ \ - LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc - + LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc The meaning of the new configure options: From 208415b81b2909fbec563340e303cd4b6d5a0c5f Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 1 Jun 2025 12:26:06 +0800 Subject: [PATCH 3/3] reboot: Remove references to files we no longer create And note /etc/resolv.conf is optional for the systemd revision. --- chapter11/reboot.xml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml index 5a8cfd51e..497445346 100644 --- a/chapter11/reboot.xml +++ b/chapter11/reboot.xml @@ -88,17 +88,14 @@ - /etc/bashrc - /etc/dircolors /etc/fstab /etc/hosts /etc/inputrc /etc/profile - /etc/resolv.conf + /etc/resolv.conf + (optional) /etc/vimrc - /root/.bash_profile - /root/.bashrc - /etc/sysconfig/ifconfig.eth0 + /etc/sysconfig/ifconfig.eth0