aboutsummaryrefslogtreecommitdiffstats
path: root/chapter03
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-10-02 19:11:57 +0800
committerXi Ruoyao <xry111@xry111.site>2022-10-02 19:11:57 +0800
commit9b2dedc676a0377d5101986aa97576b8215676ea (patch)
treeec6c383eb1aa2e6dafa735c865a530289972b7f1 /chapter03
parentbde421e48d7a25e38fb4a6114bd2a1ca1506ea30 (diff)
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".
Diffstat (limited to 'chapter03')
-rw-r--r--chapter03/introduction.xml10
1 files changed, 10 insertions, 0 deletions
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</userinput></screen>
<para>This check can be used after retrieving the needed files with any of the
methods listed above.</para>
+ <para>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:</para>
+
+<screen role="nodump"><userinput>chown root:root $LFS/sources/*</userinput></screen>
+
</sect1>