Ignore:
Timestamp:
04/27/2024 04:30:10 AM (5 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.2, 12.2-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.2, xry111/multilib
Children:
7210854, 8df847c9
Parents:
7db3765
git-author:
Xi Ruoyao <xry111@…> (04/27/2024 04:22:28 AM)
git-committer:
Xi Ruoyao <xry111@…> (04/27/2024 04:30:10 AM)
Message:

changingowner: Add --from lfs for chown root:root commands

So if the user has not set $LFS properly, chown will do nothing instead
of wreak havoc in the host distro.

--from <user> has been available for Coreutils chown since 2000 so we
don't need to raise the host system requirement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/changingowner.xml

    r7db3765 r6e179a9  
    3434  command:</para>
    3535
    36 <screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
     36<screen><userinput>chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
    3737case $(uname -m) in
    38   x86_64) chown -R root:root $LFS/lib64 ;;
     38  x86_64) chown --from lfs -R root:root $LFS/lib64 ;;
    3939esac</userinput></screen>
    4040
Note: See TracChangeset for help on using the changeset viewer.