aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorThomas Trepl <thomas@linuxfromscratch.org>2020-08-02 05:13:12 +0000
committerThomas Trepl <thomas@linuxfromscratch.org>2020-08-02 05:13:12 +0000
commit17ca5488d27f8e05df3740ba4018082e70adb223 (patch)
tree6d317bf81152a1df5761c1111789e76c92a34ab4 /chapter07
parenta0de64cd751b86a3ae07ebec7cb5f76851cda7b3 (diff)
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
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/creatingdirs.xml25
1 files changed, 17 insertions, 8 deletions
diff --git a/chapter07/creatingdirs.xml b/chapter07/creatingdirs.xml
index 590784911..f8e2d3d0b 100644
--- a/chapter07/creatingdirs.xml
+++ b/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