From 76222578364245b4f4b92556b04deeda750eae75 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 13 Jan 2025 11:20:24 +0800 Subject: [PATCH] Move fixup for $LFS owner/permssion to mounting the new partition --- chapter02/mounting.xml | 9 +++++++++ chapter04/creatingminlayout.xml | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/chapter02/mounting.xml b/chapter02/mounting.xml index 4db0f5bfc..244a3196b 100644 --- a/chapter02/mounting.xml +++ b/chapter02/mounting.xml @@ -42,6 +42,15 @@ mount -v -t ext4 /dev/<yyy> $LFS/home<yyy> with the appropriate partition names. + Set the owner and permission mode of the + $LFS directory (i.e. the root + directory in the newly created file system for the LFS system) to + &root; and 755 in case the host distro has been + configured to use a different default for mkfs: + +chown root:root $LFS +chmod 755 $LFS + Ensure that this new partition is not mounted with permissions that are too restrictive (such as the or options). Run the mount command diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index e7d651032..d4bfe9af1 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -18,15 +18,6 @@ location. We do this so those temporary programs will be overwritten when the final versions are built in . - First, set the owner and permission mode of the - $LFS directory (i.e. the root - directory in the newly created file system for the LFS system) to - &root; and 755 in case the host distro has been - configured to use a different default for mkfs: - -chown root:root $LFS -chmod 755 $LFS - Create the required directory layout by issuing the following commands as root: