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".
This commit is contained in:
Xi Ruoyao 2022-10-02 19:11:57 +08:00
parent bde421e48d
commit 9b2dedc676
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -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>