lfs/chapter06/utillinux-inst.xml
2001-09-16 21:56:25 +00:00

27 lines
997 B
XML

<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.</para>
<para><screen><userinput>cp hwclock/hwclock.c hwclock/hwclock.c.backup &amp;&amp;</userinput>
<userinput>sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \</userinput>
<userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; tmp~ &amp;&amp;</userinput>
<userinput>mv tmp~ hwclock/hwclock.c &amp;&amp;</userinput>
<userinput>mkdir -p /var/lib/hwclock</userinput></screen></para>
</sect2>
<sect2>
<title>Installation of Util-Linux</title>
<para>Install Util-Linux by running the following commands:</para>
<para><screen><userinput>./configure &amp;&amp;</userinput>
<userinput>make HAVE_SLN=yes ADD_RAW=yes &amp;&amp;</userinput>
<userinput>make HAVE_SLN=yes ADD_RAW=yes USRGAMES_DIR=/usr/bin install</userinput></screen></para>
</sect2>