diff --git a/chapter03/creatingdirs.xml b/chapter03/creatingdirs.xml index 5a399a042..ffafc5dab 100644 --- a/chapter03/creatingdirs.xml +++ b/chapter03/creatingdirs.xml @@ -33,6 +33,7 @@ Issuing the following commands will create a default directory layout: local cd $LFS/opt mkdir bin doc include info lib man + ln -s /var/tmp /usr/tmp @@ -58,5 +59,24 @@ downloaded in chapter 3 to some subdirectory under $LFS/usr/src (you will need to create the desired directory yourself). + +FHS compliance notes + + +The FHS stipulates that the /usr/local directory should contain the bin, games, +include, lib, man, sbin, and share subdirectories. You can alter your /usr/local +directory yourself if you want your system to be FHS-compliant. + + + +Also, the standard says that there should exist a /usr/share/games directory, +which we don't much like for a base system. But feel free to make your system +FHS-compliant if you wish. The FHS isn't precise as to the structure of the +/usr/local/share subdirectories, so we took the liberty of creating the +directories that we felt needed. + + + + diff --git a/chapter06/vim-inst.xml b/chapter06/vim-inst.xml index 955aac2da..74ddfd688 100644 --- a/chapter06/vim-inst.xml +++ b/chapter06/vim-inst.xml @@ -35,3 +35,24 @@ documentation. + +FHS compliance notes + + +The FHS says that editors like vim should use /var/lib/<editor> for their +temporary state files, like temporary save files for example. If you wish vim to +conform to the FHS, you should use this command set instead of the one presented +above: + + +
+ ./configure --prefix=/usr --localstatedir=/var/lib/vim && + make && + make install && + cd /usr/bin && + ln -s vim vi && + mkdir /var/lib/vim +
+ +
+