From 21d155b2ecb0e4b0e05490fdeed92ddb7b475349 Mon Sep 17 00:00:00 2001 From: Simon Perreault Date: Wed, 18 Apr 2001 01:43:30 +0000 Subject: FHS compliance notes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@531 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/utillinux-inst.xml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'chapter06/utillinux-inst.xml') 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,3 +1,22 @@ + +FHS compliance notes + + +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: + + +
+ sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \ + +    hwclock/hwclock.c > hwclock~ + && + mv hwclock~ hwclock/hwclock.c && + mkdir /var/lib/hwclock +
+
+ Installation of Util-Linux @@ -10,15 +29,9 @@ Install Util-Linux by running the following commands:    MCONFIG > MCONFIG~ && mv MCONFIG~ MCONFIG && - sed "s|etc/adjtime\"\$|var/lib/hwclock/adjtime\"|" \ - -    hwclock/hwclock.c > hwclock~ - && - mv hwclock~ hwclock/hwclock.c && ./configure && make && - make install && - mkdir /var/lib/hwclock + make install -- cgit v1.2.3-54-g00ecf