mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
3229c6b8a2
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@771 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
41 lines
1.0 KiB
XML
41 lines
1.0 KiB
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>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \</userinput>
|
|
<userinput> hwclock/hwclock.c > hwclock~ &&</userinput>
|
|
<userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>
|
|
<userinput>mkdir /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>sed s/HAVE_SLN=no/HAVE_SLN=yes/ \</userinput>
|
|
<userinput> MCONFIG > MCONFIG~ &&</userinput>
|
|
<userinput>mv MCONFIG~ MCONFIG &&</userinput>
|
|
<userinput>./configure &&</userinput>
|
|
<userinput>make &&</userinput>
|
|
<userinput>make install</userinput>
|
|
</screen>
|
|
</para>
|
|
|
|
</sect2>
|
|
|