aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/utillinux-inst.xml
diff options
context:
space:
mode:
authorSimon Perreault <nomis80@videotron.ca>2001-04-18 01:43:30 +0000
committerSimon Perreault <nomis80@videotron.ca>2001-04-18 01:43:30 +0000
commit21d155b2ecb0e4b0e05490fdeed92ddb7b475349 (patch)
tree3d8e00a51cdc9cc91e1224785b91de9f714459a2 /chapter06/utillinux-inst.xml
parent592fb7ce49358c074a599b53d54d1a8a5585d18d (diff)
FHS compliance notes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@531 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/utillinux-inst.xml')
-rw-r--r--chapter06/utillinux-inst.xml27
1 files changed, 20 insertions, 7 deletions
diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml
index 905380146..247058eec 100644
--- a/chapter06/utillinux-inst.xml
+++ b/chapter06/utillinux-inst.xml
@@ -1,4 +1,23 @@
<sect2>
+<title>FHS compliance notes</title>
+
+<para>
+The FHS recommends that we use /var/lib/hwclock as the location of the adjtime
+file, instead of the usual /etc. To make hwclock, which is part of the
+util-linux package, FHS-compliant, run the following prior to compiling:
+</para>
+
+<blockquote><literallayout>
+ <userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \
+ </userinput>
+ <userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; hwclock~
+ &amp;&amp;</userinput>
+ <userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput>
+ <userinput>mkdir /var/lib/hwclock</userinput>
+</literallayout></blockquote>
+</sect2>
+
+<sect2>
<title>Installation of Util-Linux</title>
<para>
@@ -10,15 +29,9 @@ 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>&nbsp;&nbsp;&nbsp;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 &amp;&amp;</userinput>
- <userinput>mkdir /var/lib/hwclock</userinput>
+ <userinput>make install</userinput>
</literallayout></blockquote>
</sect2>