- Timestamp:
- 03/31/2021 10:41:40 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 4ea78e0
- Parents:
- bd1abf6
- git-author:
- Thomas Trepl <thomas@…> (08/07/2020 07:06:58 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:40 AM)
- Location:
- chapter07
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chapter07.xml
rbd1abf6 r032dc4e8 19 19 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="createfiles.xml"/> 20 20 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libstdc++-pass2.xml"/> 21 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/> 21 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/> 22 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>23 23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="perl.xml"/> 24 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="python.xml"/> -
chapter07/creatingdirs.xml
rbd1abf6 r032dc4e8 11 11 <title>Creating Directories</title> 12 12 13 <para>It is time to create the full structure in the LFS file system. Create 14 a standard directory tree by issuing the following commands:</para> 13 <para>It is time to create the full structure in the LFS file system.</para> 15 14 16 <screen><userinput>mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt} 17 mkdir -pv /{media/{floppy,cdrom},srv,var} 15 <para>Create some root-level directories that are not in the limited set 16 required in the previous chapters by issuing the following command:</para> 17 18 <note><para>Some of the directories below have already been created earlier 19 with explicit instructions or when installing some packages. They are 20 repeated below for completeness.</para></note> 21 22 <screen><userinput>mkdir -pv /{boot,home,mnt,opt,srv}</userinput></screen> 23 24 <para>Create the required set of subdirectories below the root-level by 25 issuing the following commands:</para> 26 27 <screen><userinput>mkdir -pv /etc/{opt,sysconfig} 28 mkdir -pv /lib/firmware 29 mkdir -pv /media/{floppy,cdrom} 18 30 mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src} 19 31 mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man} 20 32 mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo} 21 33 mkdir -pv /usr/{,local/}share/man/man{1..8} 34 mkdir -pv /var/{cache,local,log,mail,opt,spool} 35 mkdir -pv /var/lib/{color,misc,locate} 36 37 ln -sfv /run /var/run 38 ln -sfv /run/lock /var/lock 39 22 40 install -dv -m 0750 /root 23 install -dv -m 1777 /tmp /var/tmp 24 25 mkdir -v /var/{log,mail,spool} 26 ln -sv /run /var/run 27 ln -sv /run/lock /var/lock 28 mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local}</userinput></screen> 41 install -dv -m 1777 /tmp /var/tmp</userinput></screen> 29 42 30 43 <para arch="ml_32,ml_x32,ml_all">Required directories for multilib
Note:
See TracChangeset
for help on using the changeset viewer.