utillinux-inst.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <sect2>
  2. <title>FHS compliance notes</title>
  3. <para>
  4. The FHS recommends that we use /var/lib/hwclock as the location of the adjtime
  5. file, instead of the usual /etc. To make hwclock, which is part of the
  6. util-linux package, FHS-compliant, run the following.
  7. </para>
  8. <para>
  9. <screen>
  10. <userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \</userinput>
  11. <userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; hwclock~ &amp;&amp;</userinput>
  12. <userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput>
  13. <userinput>mkdir /var/lib/hwclock</userinput>
  14. </screen>
  15. </para>
  16. </sect2>
  17. <sect2>
  18. <title>Installation of Util-Linux</title>
  19. <para>
  20. Install Util-Linux by running the following commands:
  21. </para>
  22. <para>
  23. <screen>
  24. <userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
  25. <userinput>&nbsp;&nbsp;&nbsp;MCONFIG &gt; MCONFIG~ &amp;&amp;</userinput>
  26. <userinput>mv MCONFIG~ MCONFIG &amp;&amp;</userinput>
  27. <userinput>./configure &amp;&amp;</userinput>
  28. <userinput>make ADD_RAW=yes &amp;&amp;</userinput>
  29. <userinput>make ADD_RAW=yes install</userinput>
  30. </screen>
  31. </para>
  32. </sect2>