mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
rust: chapter04: create /opt and chown it to lfs user
This commit is contained in:
parent
f6459cb171
commit
dfa490c495
@ -80,7 +80,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
|
||||
all the directories under <filename class="directory">$LFS</filename> by making
|
||||
<systemitem class="username">lfs</systemitem> the owner:</para>
|
||||
|
||||
<screen><userinput>chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools}
|
||||
<screen><userinput>chown -v lfs $LFS/{usr{,/*},lib,var,etc,opt,bin,sbin,tools}
|
||||
case $(uname -m) in
|
||||
x86_64) chown -v lfs $LFS/lib64 ;;
|
||||
esac</userinput></screen>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<para>Create the required directory layout by issuing the following commands as
|
||||
<systemitem class="username">root</systemitem>:</para>
|
||||
|
||||
<screen><userinput>mkdir -pv $LFS/{etc,var} $LFS/usr/{bin,lib,sbin}
|
||||
<screen><userinput>mkdir -pv $LFS/{etc,opt,var} $LFS/usr/{bin,lib,sbin}
|
||||
|
||||
for i in bin lib sbin; do
|
||||
ln -sv usr/$i $LFS/$i
|
||||
|
@ -33,7 +33,7 @@
|
||||
user <systemitem class="username">root</systemitem> by running the following
|
||||
command:</para>
|
||||
|
||||
<screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools}
|
||||
<screen><userinput>chown -R root:root $LFS/{usr,lib,var,etc,opt,bin,sbin,tools}
|
||||
case $(uname -m) in
|
||||
x86_64) chown -R root:root $LFS/lib64 ;;
|
||||
esac</userinput></screen>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<para>Create some root-level directories that are not in the limited set
|
||||
required in the previous chapters by issuing the following command:</para>
|
||||
|
||||
<screen><userinput>mkdir -pv /{boot,home,mnt,opt,srv}</userinput></screen>
|
||||
<screen><userinput>mkdir -pv /{boot,home,mnt,srv}</userinput></screen>
|
||||
|
||||
<para>Create the required set of subdirectories below the root-level by
|
||||
issuing the following commands:</para>
|
||||
|
Loading…
Reference in New Issue
Block a user