utillinux-inst.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>FHS compliance notes</title>
  4. <para>The FHS recommends that we use <filename>/var/lib/hwclock</filename>,
  5. instead of the usual <filename>/etc</filename>, as the location for the
  6. <filename>adjtime</filename> file. To make the <userinput>hwclock</userinput>
  7. program FHS-compliant, run the following:</para>
  8. <para><screen><userinput>cp hwclock/hwclock.c{,.backup}
  9. sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
  10. &nbsp;&nbsp;&nbsp;&nbsp;hwclock/hwclock.c.backup &gt; hwclock/hwclock.c
  11. mkdir -p /var/lib/hwclock</userinput></screen></para>
  12. </sect2>
  13. <sect2>
  14. <title>Installation of Util-linux</title>
  15. <para>Prepare Util-linux for compilation:</para>
  16. <para><screen><userinput>./configure</userinput></screen></para>
  17. <para>Compile the package:</para>
  18. <para><screen><userinput>make HAVE_SLN=yes</userinput></screen></para>
  19. <para>The meaning of the make parameter:</para>
  20. <itemizedlist>
  21. <listitem><para><userinput>HAVE_SLN=yes</userinput>: This prevents the
  22. <userinput>sln</userinput> program (a statically linked
  23. <userinput>ln</userinput>, already installed by Glibc) from being built
  24. again.</para></listitem>
  25. </itemizedlist>
  26. <para>And install the package:</para>
  27. <para><screen><userinput>make HAVE_SLN=yes install</userinput></screen></para>
  28. </sect2>