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.
This commit is contained in:
Xi Ruoyao 2025-05-27 11:41:13 +08:00
parent 3975ea8c7e
commit 6c311ec76f
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -33,7 +33,7 @@
user <systemitem class="username">root</systemitem> by running the following user <systemitem class="username">root</systemitem> by running the following
command:</para> command:</para>
<screen><userinput>chown --from &lfs-username; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} <screen><userinput>chown --from &lfs-username; -R root:root $LFS/{usr,var,etc,tools}
case $(uname -m) in case $(uname -m) in
x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;; x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;;
esac</userinput></screen> esac</userinput></screen>