utillinux-inst.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <blockquote><literallayout>
  9. <userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|"
  10. \</userinput>
  11. <userinput>&nbsp;&nbsp;&nbsp;hwclock/hwclock.c &gt; hwclock~
  12. &amp;&amp;</userinput>
  13. <userinput>mv hwclock~ hwclock/hwclock.c &amp;&amp;</userinput>
  14. <userinput>mkdir /var/lib/hwclock</userinput>
  15. </literallayout></blockquote>
  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. <blockquote><literallayout>
  23. <userinput>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
  24. <userinput>&nbsp;&nbsp;&nbsp;MCONFIG &gt; MCONFIG~
  25. &amp;&amp;</userinput>
  26. <userinput>mv MCONFIG~ MCONFIG &amp;&amp;</userinput>
  27. <userinput>./configure &amp;&amp;</userinput>
  28. <userinput>make &amp;&amp;</userinput>
  29. <userinput>make install</userinput>
  30. </literallayout></blockquote>
  31. </sect2>