Changeset 34b4493


Ignore:
Timestamp:
04/22/2021 10:08:46 AM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/usr-move
Children:
0cc7891
Parents:
24c34df
Message:

usr-move: create {/usr,}/{lib,lib64,bin,sbin} in ch04 correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter04/creatingminlayout.xml

    r24c34df r34b4493  
    2121  <systemitem class="username">root</systemitem>:</para>
    2222
    23 <screen><userinput>mkdir -pv $LFS/{bin,etc,lib,sbin,usr,var}
     23<screen revision="sysv"><userinput>mkdir -pv $LFS/{etc,var} $LFS{/usr,}/{bin,lib,sbin}
     24
    2425case $(uname -m) in
    2526  x86_64) mkdir -pv $LFS/lib64 ;;
    2627esac</userinput></screen>
     28
     29<screen revision="systemd"><userinput>mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin}
     30
     31for i in bin lib sbin; do
     32  ln -sv usr/$i $LFS/$i
     33done
     34
     35if [ $(uname -m) = x86_64 ]; then
     36  mkdir -pv $LFS/usr/lib64
     37  ln -sv usr/lib64 $LFS/lib64
     38fi</userinput></screen>
    2739
    2840  <para>Programs in <xref linkend="chapter-temporary-tools"/> will be compiled
Note: See TracChangeset for help on using the changeset viewer.