diff options
author | Simon Perreault <nomis80@videotron.ca> | 2001-04-17 00:24:53 +0000 |
---|---|---|
committer | Simon Perreault <nomis80@videotron.ca> | 2001-04-17 00:24:53 +0000 |
commit | 22c89bdaffe808839193af96247180f8a0ce2c0b (patch) | |
tree | 0479a7b407c5efd5545e27cbb80499107f92e6fa | |
parent | 0c21363e1030e33860c7b8c3127bf43db97dfb6b (diff) |
FHS compliance, step 1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@526 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter03/creatingdirs.xml | 9 | ||||
-rw-r--r-- | chapter06/e2fsprogs-inst.xml | 3 | ||||
-rw-r--r-- | chapter06/gzip-inst.xml | 3 | ||||
-rw-r--r-- | chapter06/utillinux-exp.xml | 5 | ||||
-rw-r--r-- | 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: <blockquote><literallayout> <userinput>cd $LFS</userinput> - <userinput>mkdir -p bin boot dev/pts etc home lib mnt proc root sbin - tmp var</userinput> + <userinput>mkdir -p bin boot dev/pts etc/opt home lib mnt proc root sbin + tmp var opt</userinput> <userinput>for dirname in $LFS/usr $LFS/usr/local</userinput> <userinput><literal> do</literal></userinput> <userinput> mkdir $dirname</userinput> @@ -29,7 +29,10 @@ Issuing the following commands will create a default directory layout: man8</userinput> <userinput>done</userinput> <userinput>cd $LFS/var</userinput> - <userinput>mkdir lock log mail run spool tmp</userinput> + <userinput>mkdir -p lock log mail run spool tmp opt cache lib/misc local + opt </userinput> + <userinput>cd $LFS/opt</userinput> + <userinput>mkdir bin doc include info lib man</userinput> </literallayout></blockquote> <para> 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. <userinput> --enable-elf-shlibs &&</userinput> <userinput>make &&</userinput> <userinput>make install &&</userinput> - <userinput>make install-libs</userinput> + <userinput>make install-libs &&</userinput> + <userinput>mv /usr/sbin/mklost+found /sbin</userinput> </literallayout></blockquote> </sect2> 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: <userinput>make install &&</userinput> <userinput>cd /usr/bin &&</userinput> <userinput>mv gzip /bin &&</userinput> - <userinput>rm gunzip &&</userinput> + <userinput>rm gunzip zcat &&</userinput> <userinput>cd /bin &&</userinput> <userinput>ln -sf gzip gunzip &&</userinput> + <userinput>ln -s gzip zcat &&</userinput> <userinput>ln -s gzip compress &&</userinput> <userinput>ln -s gunzip uncompress</userinput> </literallayout></blockquote> 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. </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 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: <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>make install &&</userinput> + <userinput>mkdir /var/lib/hwclock</userinput> </literallayout></blockquote> </sect2> |