From 22c89bdaffe808839193af96247180f8a0ce2c0b Mon Sep 17 00:00:00 2001 From: Simon Perreault Date: Tue, 17 Apr 2001 00:24:53 +0000 Subject: FHS compliance, step 1. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@526 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter03/creatingdirs.xml | 9 ++++++--- chapter06/e2fsprogs-inst.xml | 3 ++- chapter06/gzip-inst.xml | 3 ++- chapter06/utillinux-exp.xml | 5 +++++ chapter06/utillinux-inst.xml | 7 ++++++- 5 files changed, 21 insertions(+), 6 deletions(-) diff --git a/chapter03/creatingdirs.xml b/chapter03/creatingdirs.xml index 0e42e620e..317fdb5ee 100644 --- a/chapter03/creatingdirs.xml +++ b/chapter03/creatingdirs.xml @@ -10,8 +10,8 @@ Issuing the following commands will create a default directory layout:
cd $LFS - mkdir -p bin boot dev/pts etc home lib mnt proc root sbin - tmp var + mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin + tmp var opt for dirname in $LFS/usr $LFS/usr/local    do    mkdir $dirname @@ -29,7 +29,10 @@ Issuing the following commands will create a default directory layout: man8 done cd $LFS/var - mkdir lock log mail run spool tmp + mkdir -p lock log mail run spool tmp opt cache lib/misc local + opt + cd $LFS/opt + mkdir bin doc include info lib man
diff --git a/chapter06/e2fsprogs-inst.xml b/chapter06/e2fsprogs-inst.xml index 88d2aadb2..a7ba507d7 100644 --- a/chapter06/e2fsprogs-inst.xml +++ b/chapter06/e2fsprogs-inst.xml @@ -15,7 +15,8 @@ to be like this. We did not forget to supply a value there.    --enable-elf-shlibs && make && make install && - make install-libs + make install-libs && + mv /usr/sbin/mklost+found /sbin diff --git a/chapter06/gzip-inst.xml b/chapter06/gzip-inst.xml index 80de916ae..6af228e10 100644 --- a/chapter06/gzip-inst.xml +++ b/chapter06/gzip-inst.xml @@ -11,9 +11,10 @@ Install Gzip by running the following commands: make install && cd /usr/bin && mv gzip /bin && - rm gunzip && + rm gunzip zcat && cd /bin && ln -sf gzip gunzip && + ln -s gzip zcat && ln -s gzip compress && ln -s gunzip uncompress diff --git a/chapter06/utillinux-exp.xml b/chapter06/utillinux-exp.xml index 8e88ccf7e..1d3046201 100644 --- a/chapter06/utillinux-exp.xml +++ b/chapter06/utillinux-exp.xml @@ -6,5 +6,10 @@ it already was installed by Glibc. + +/var/lib/hwclock/adjtime The adjtime file is placed in +/var/lib/hwclock as dictates the Filesystem Hierarchy Standard (FHS). + + diff --git a/chapter06/utillinux-inst.xml b/chapter06/utillinux-inst.xml index b6652e8b4..80484c9f1 100644 --- a/chapter06/utillinux-inst.xml +++ b/chapter06/utillinux-inst.xml @@ -10,9 +10,14 @@ 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 + make install && + mkdir /var/lib/hwclock -- cgit v1.2.3-54-g00ecf