aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Perreault <nomis80@videotron.ca>2001-04-17 00:24:53 +0000
committerSimon Perreault <nomis80@videotron.ca>2001-04-17 00:24:53 +0000
commit22c89bdaffe808839193af96247180f8a0ce2c0b (patch)
tree0479a7b407c5efd5545e27cbb80499107f92e6fa
parent0c21363e1030e33860c7b8c3127bf43db97dfb6b (diff)
FHS compliance, step 1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@526 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter03/creatingdirs.xml9
-rw-r--r--chapter06/e2fsprogs-inst.xml3
-rw-r--r--chapter06/gzip-inst.xml3
-rw-r--r--chapter06/utillinux-exp.xml5
-rw-r--r--chapter06/utillinux-inst.xml7
5 files changed, 21 insertions, 6 deletions
diff --git a/chapter03/creatingdirs.xml b/chapter03/creatingdirs.xml
index 0e42e620e..317fdb5ee 100644
--- a/chapter03/creatingdirs.xml
+++ b/chapter03/creatingdirs.xml
@@ -10,8 +10,8 @@ Issuing the following commands will create a default directory layout:
<blockquote><literallayout>
<userinput>cd $LFS</userinput>
- <userinput>mkdir -p bin boot dev/pts etc home lib mnt proc root sbin
- tmp var</userinput>
+ <userinput>mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin
+ tmp var opt</userinput>
<userinput>for dirname in $LFS/usr $LFS/usr/local</userinput>
<userinput><literal>&nbsp;&nbsp;&nbsp;do</literal></userinput>
<userinput>&nbsp;&nbsp;&nbsp;mkdir $dirname</userinput>
@@ -29,7 +29,10 @@ Issuing the following commands will create a default directory layout:
man8</userinput>
<userinput>done</userinput>
<userinput>cd $LFS/var</userinput>
- <userinput>mkdir lock log mail run spool tmp</userinput>
+ <userinput>mkdir -p lock log mail run spool tmp opt cache lib/misc local
+ opt </userinput>
+ <userinput>cd $LFS/opt</userinput>
+ <userinput>mkdir bin doc include info lib man</userinput>
</literallayout></blockquote>
<para>
diff --git a/chapter06/e2fsprogs-inst.xml b/chapter06/e2fsprogs-inst.xml
index 88d2aadb2..a7ba507d7 100644
--- a/chapter06/e2fsprogs-inst.xml
+++ b/chapter06/e2fsprogs-inst.xml
@@ -15,7 +15,8 @@ to be like this. We did not forget to supply a value there.
<userinput>&nbsp;&nbsp;&nbsp;--enable-elf-shlibs &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install &amp;&amp;</userinput>
- <userinput>make install-libs</userinput>
+ <userinput>make install-libs &amp;&amp;</userinput>
+ <userinput>mv /usr/sbin/mklost+found /sbin</userinput>
</literallayout></blockquote>
</sect2>
diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml
index 80de916ae..6af228e10 100644
--- a/chapter06/gzip-inst.xml
+++ b/chapter06/gzip-inst.xml
@@ -11,9 +11,10 @@ Install Gzip by running the following commands:
<userinput>make install &amp;&amp;</userinput>
<userinput>cd /usr/bin &amp;&amp;</userinput>
<userinput>mv gzip /bin &amp;&amp;</userinput>
- <userinput>rm gunzip &amp;&amp;</userinput>
+ <userinput>rm gunzip zcat &amp;&amp;</userinput>
<userinput>cd /bin &amp;&amp;</userinput>
<userinput>ln -sf gzip gunzip &amp;&amp;</userinput>
+ <userinput>ln -s gzip zcat &amp;&amp;</userinput>
<userinput>ln -s gzip compress &amp;&amp;</userinput>
<userinput>ln -s gunzip uncompress</userinput>
</literallayout></blockquote>
diff --git a/chapter06/utillinux-exp.xml b/chapter06/utillinux-exp.xml
index 8e88ccf7e..1d3046201 100644
--- a/chapter06/utillinux-exp.xml
+++ b/chapter06/utillinux-exp.xml
@@ -6,5 +6,10 @@
it already was installed by Glibc.
</para>
+<para>
+<userinput>/var/lib/hwclock/adjtime</userinput> The adjtime file is placed in
+/var/lib/hwclock as dictates the Filesystem Hierarchy Standard (FHS).
+</para>
+
</sect2>
diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml
index b6652e8b4..80484c9f1 100644
--- a/chapter06/utillinux-inst.xml
+++ b/chapter06/utillinux-inst.xml
@@ -10,9 +10,14 @@ Install Util-Linux by running the following commands:
<userinput>&nbsp;&nbsp;&nbsp;MCONFIG &gt; MCONFIG~
&amp;&amp;</userinput>
<userinput>mv MCONFIG~ MCONFIG &amp;&amp;</userinput>
+ <userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \
+ </userinput>
+ <userinput>hwclock/hwclock.c &gt; hwclock~ &amp;&amp;</userinput>
+ <userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput>
<userinput>./configure &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
- <userinput>make install</userinput>
+ <userinput>make install &amp;&amp;</userinput>
+ <userinput>mkdir /var/lib/hwclock</userinput>
</literallayout></blockquote>
</sect2>