Browse Source

Some cosmetic tweaks
* Reorder commants to match descriptive text (/root, /tmp)
* Sort commands alphabetically
Changes based on notes from Kevin B. @lfs-dev

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12006 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Thomas Trepl 3 years ago
parent
commit
17ca5488d2
1 changed files with 17 additions and 8 deletions
  1. 17 8
      chapter07/creatingdirs.xml

+ 17 - 8
chapter07/creatingdirs.xml

@@ -10,22 +10,31 @@
 
   <title>Creating Directories</title>
 
-  <para>It is time to create the full structure in the LFS file system. Create
-  a standard directory tree by issuing the following commands:</para>
+  <para>It is time to create the full structure in the LFS file system.</para>
 
-<screen><userinput>mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt}
-mkdir -pv /{media/{floppy,cdrom},srv,var}
+  <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>
+
+  <para>Create the required set of subdirectories below the root-level by
+    issuing the following commands:</para>
+
+<screen><userinput>mkdir -pv /etc/{opt,sysconfig}
+mkdir -pv /lib/firmware
+mkdir -pv /media/{floppy,cdrom}
 mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
 mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man}
 mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo}
 mkdir -pv /usr/{,local/}share/man/man{1..8}
-install -dv -m 0750 /root
-install -dv -m 1777 /tmp /var/tmp
+mkdir -pv /var/{cache,local,log,mail,opt,spool}
+mkdir -pv /var/lib/{color,misc,locate}
 
-mkdir -v /var/{log,mail,spool}
 ln -sv /run /var/run
 ln -sv /run/lock /var/lock
-mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local}</userinput></screen>
+
+install -dv -m 0750 /root
+install -dv -m 1777 /tmp /var/tmp</userinput></screen>
 
   <para>Directories are, by default, created with permission mode 755, but
   this is not desirable for all directories. In the commands above, two