aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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