diff options
-rw-r--r-- | chapter06/utillinux-exp.xml | 5 | ||||
-rw-r--r-- | chapter06/utillinux-inst.xml | 27 |
2 files changed, 20 insertions, 12 deletions
diff --git a/chapter06/utillinux-exp.xml b/chapter06/utillinux-exp.xml index f394a265f..93986ef89 100644 --- a/chapter06/utillinux-exp.xml +++ b/chapter06/utillinux-exp.xml @@ -6,10 +6,5 @@ it already was installed by Glibc. </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> diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml index 905380146..247058eec 100644 --- a/chapter06/utillinux-inst.xml +++ b/chapter06/utillinux-inst.xml @@ -1,4 +1,23 @@ <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> <title>Installation of Util-Linux</title> <para> @@ -10,15 +29,9 @@ Install Util-Linux by running the following commands: <userinput> 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>make &&</userinput> - <userinput>make install &&</userinput> - <userinput>mkdir /var/lib/hwclock</userinput> + <userinput>make install</userinput> </literallayout></blockquote> </sect2> |