mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 14:24:48 +00:00
FHS compliance notes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@531 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
592fb7ce49
commit
21d155b2ec
@ -6,10 +6,5 @@
|
|||||||
it already was installed by Glibc.
|
it already was installed by Glibc.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
|
||||||
<userinput>/var/lib/hwclock/adjtime</userinput>: The adjtime file is placed in
|
|
||||||
/var/lib/hwclock as dictates the Filesystem Hierarchy Standard (FHS).
|
|
||||||
</para>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
<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 prior to compiling:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<blockquote><literallayout>
|
||||||
|
<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>
|
||||||
|
</literallayout></blockquote>
|
||||||
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Util-Linux</title>
|
<title>Installation of Util-Linux</title>
|
||||||
|
|
||||||
@ -10,15 +29,9 @@ Install Util-Linux by running the following commands:
|
|||||||
<userinput> MCONFIG > MCONFIG~
|
<userinput> MCONFIG > MCONFIG~
|
||||||
&&</userinput>
|
&&</userinput>
|
||||||
<userinput>mv MCONFIG~ MCONFIG &&</userinput>
|
<userinput>mv MCONFIG~ MCONFIG &&</userinput>
|
||||||
<userinput>sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \
|
|
||||||
</userinput>
|
|
||||||
<userinput> hwclock/hwclock.c > hwclock~
|
|
||||||
&&</userinput>
|
|
||||||
<userinput>mv hwclock~ hwclock/hwclock.c &&</userinput>
|
|
||||||
<userinput>./configure &&</userinput>
|
<userinput>./configure &&</userinput>
|
||||||
<userinput>make &&</userinput>
|
<userinput>make &&</userinput>
|
||||||
<userinput>make install &&</userinput>
|
<userinput>make install</userinput>
|
||||||
<userinput>mkdir /var/lib/hwclock</userinput>
|
|
||||||
</literallayout></blockquote>
|
</literallayout></blockquote>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
Loading…
Reference in New Issue
Block a user