Go to file
Pierre Labastie 27d23b1d41 Change semantics of S and K files
Presently, there are a lot of special cases:
- runlevel 0 and 6 unconditionally run "script stop" if they
  find a Kxxscript symlink. This may lead to trying to stop an
  already stopped device if for example switching to runlevel 0/6
  from runlevel 1. This can be fixed by stating the convention
  that it is the responsability of scripts to check that the service
  is running before killing it (or not running before starting it).
  Still, we shouldn't try to stop a service if it was marked K in
  the previous runlevel. And same for S files: we shouldn't try to
  start a service that was marked S in the previous runlevel. Note
  that changing runlevel is not a "reset": if a user has manually
  changed the state of a daemon, this state will remain the same
  upon changing runlevel if the S/K status of that dameon is
  the same in both runlevels.

- Sxxscript symlinks in runlevel 0/6 are run as "script stop"
  instead of the more intuitive "script start". This does not interact
  well with LSB-tools (some scripts would need "Default-Start: S 0 6"
  but then it is impossible to get correct "Required-Start" or
  "Should-Start" fields). Furthermore, having a counter-intuitive
  behavior is error prone. So now runlevel 0/6 will run "script
  sart" for a Sxxscript.
2022-03-25 10:19:53 +01:00
appendices Add glib2 as an optional dependency of pkg-config 2022-02-10 10:28:23 +01:00
bootscripts Change semantics of S and K files 2022-03-25 10:19:53 +01:00
chapter01 package updates 2022-03-20 21:26:58 +08:00
chapter02 relax host system requirements 2022-02-19 10:29:47 +08:00
chapter03 package update 2022-03-15 16:18:24 +08:00
chapter04 don't chown $LFS/sources to lfs (#5018) 2022-03-05 16:30:43 +08:00
chapter05 fix typos 2022-03-25 01:03:13 +08:00
chapter06 Typo 2022-03-06 15:37:02 -06:00
chapter07 fix typos 2022-03-25 01:03:13 +08:00
chapter08 fix typos 2022-03-25 01:03:13 +08:00
chapter09 inputrc: "8bit" -> "8-bit" 2022-03-25 01:10:23 +08:00
chapter10 Fix kernel config to mount the devtmpfs before boot 2022-03-22 22:03:33 +01:00
chapter11 Make umounting explicit 2021-11-01 12:05:41 -05:00
images Adding some new png files to supoprt alternate css 2015-08-10 17:53:57 +00:00
part3intro part 3 intro: warn that don't copy source tree with cp -R 2022-02-22 13:34:36 +08:00
prologue Spelling/Typos 2022-02-18 14:49:40 -06:00
stylesheets Remove eol spaces in xsl stylesheets 2021-09-07 23:28:43 +02:00
udev-lfs Remove eol spaces 2021-09-07 23:10:29 +02:00
.gitignore Ignore fop.log 2022-03-15 11:17:36 -05:00
aux-file-data.sh Convert bootscripts and udev tarballs to xz 2019-06-30 19:25:49 +00:00
general.ent Set general.ent for development 2021-09-22 23:28:01 +02:00
git-version.sh Package updates. 2021-12-31 07:10:48 -06:00
index.xml Just a test 2021-04-13 15:01:48 -05:00
INSTALL doc: correct the URL of BLFS docbook-xml-4.5 page 2022-02-23 02:10:17 +08:00
lfs-latest-git.php Fix currency for tcl 2022-02-04 13:29:55 -06:00
lfs-latest.php Remove eol spaces 2021-09-07 23:10:29 +02:00
make-aux-files.sh Fix make-aux-file for lfs-bootscript entities 2021-09-22 23:21:31 +02:00
Makefile Add a conditional entity for sysv/systemd 2021-09-22 23:11:52 +02:00
obfuscate.sh
packages.ent package updates 2022-03-20 21:26:58 +08:00
patches.ent package update 2022-03-15 16:18:24 +08:00
pdf-fixups.sh Fix pdf presentation issues and some misc issues 2022-03-14 13:08:40 -05:00
process-scripts.sh Remove eol spaces 2021-09-07 23:10:29 +02:00
README Remove eol spaces 2021-09-07 23:05:44 +02:00
tidy.conf Adjust tidy.conf for recent version 2018-09-04 16:33:51 +00:00

LFS Book README

This document is meant to instruct the user on how to convert the book's XML
source to other formats (e.g. HTML, PDF, PS and TXT).  First, if you have not
already done so, please read the INSTALL file for instructions on how to install
the required software.  If you have already completed the steps outlined in the
INSTALL file, then continue reading for examples how to convert these files into
various other formats.

In all examples, setting the parameter REV=systemd is needed to build the
systemd version of the book.

XML to XHTML:
-------------
make BASEDIR=/path/to/output/location


XML to single file XHTML (nochunks):
------------------------------------
make BASEDIR=/path/to/output/location nochunks

XML to TXT
----------
Follow the instructions for nochunks and then run:
lynx -dump /path/to/nochunks >/path/to/output

XML to PDF:
-----------
make BASEDIR=/path/to/output/location pdf