From 9b2dedc676a0377d5101986aa97576b8215676ea Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sun, 2 Oct 2022 19:11:57 +0800 Subject: package: add optional instruction to change the owner of downloaded packages to root Many users will create a user with the same username and UID so the files will still be owned by his/her. So make it optional by "If you won't assign the same UID for your user in the LFS system". --- chapter03/introduction.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chapter03/introduction.xml b/chapter03/introduction.xml index 1a69187a2..0e90508ae 100644 --- a/chapter03/introduction.xml +++ b/chapter03/introduction.xml @@ -104,4 +104,14 @@ popd This check can be used after retrieving the needed files with any of the methods listed above. + If the packages and patches are downloaded as a non-&root; user, + these files will be owned by the user. The file system records the + owner by its UID, and the UID of a normal user in the host distro is + not assigned in LFS. So the files will be left owned by an unnamed UID + in the final LFS system. If you won't assign the same UID for your user + in the LFS system, change the owners of these files to &root; now to + avoid this issue: + +chown root:root $LFS/sources/* + -- cgit v1.2.3-54-g00ecf