source: lsb-bootscripts/README@ 63a2c2d

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 63a2c2d was 63a2c2d, checked in by DJ Lucas <dj@…>, 13 years ago

Moved BOOK/bootscripts/contrib/lsb-v3 to BOOK/lsb-bootscripts.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9538 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.3 KB
Line 
1LSB-Bootscripts README
2
3The scripts contained in this directory are a complete rewrite of the
4boot scripts from LFS-6.1. As is usually the case with a rewrite, there have
5been many changes:
6
7LSB Version 4.1 Compliant Scripts - Immediately noticable are the LSB headers
8in the rc.d scripts themselves. Each script contains a usable header to
9allow for automating both the installation of, and determining proper
10execution order for the startup scripts. These values can also be used
11directly in parallel boot setups. Additionally, messages are displayed in
12one single write to the screen, after exit status is determined, so that
13they can be used in parallel setups. I am not sure if this was the only
14barrier to auto language translation in the previous bootscripts. Further,
15the messages are created from parts and only written to the screen in a
16single command, so maybe no help at all WRT translated boot messages.
17
18AS OF 20080907, THESE SCRIPTS REQUIRE THE initd-tools PACKAGE.
19Dan Nicholson has recently released an initd-tools package that contain
20LSB compliant install_initd and remove_initd programs written in C.
21See the INSTALL file for installation instructions.
22
23Path changes - The base directory for the bootscripts is now /etc. This is
24mostly to conform with mainstream distros. Of course, this is still
25configurable in /etc/default/rc.site. The rcsysinit.d directory has been
26removed and and replaced with the shorter rcS.d. /etc/sysconfig has been
27removed in favor of /etc/default. The network service scripts have been moved
28to /lib/network-services and the the network configuration files to
29/etc/network. Values for short, and relatively static, configuration files
30(clock and network) have been included in the rc.site file directly.
31
32Distribution Independent - this original goal for the LFS scripts has been
33stretched even further by providing both a global rc config file that
34contains (generally) static values, and a new rc.site config file to allow
35customization of messages as diplayed to the end user during the boot
36process. The format of messages printed to the screen is adjustable
37here. Other options that were available in the previous versions of the
38lfs-bootscripts, and additional options such as message format and color, are
39configurable by the /etc/sysconfig/rc.site file.
40
41Single Environment - The rc script has been rewritten completely to allow a
42single source of the boot configuration per runlevel change. This config
43is inherited from rc's environment as opposed to being sourced everytime a
44script is run. This does result in a negledgable decrease in boot time, but
45is simply better in principle.
46
47Boot Logging - The previous incarnation of the boot log didn't begin
48recording events until the root filesystem was mounted read/write. This has
49been corrected by providing the /run tempfs mount immediately after init hands
50control to the rc script. The bootlog is generated on the tempfs and then
51passed to the log file before login. Additionally, shutdown events are no
52longer recorded in the bootlog. They were pretty much useless and it really
53wasn't what I'd call a *boot* log. Boot logging is on by default and is
54configurable in the /etc/default/rc.site file via the "BOOTLOG_ENAB" parameter.
55
56Interactive Boot - This feature has been included by default, and is a
57little more polished than in previous versions. It does introduce a two
58second delay in the boot process (so that you have time to press a button
59to select interactive mode). This time value, and the option prompt itself,
60is configurable in the /etc/default/rc.site file via the "itime" and "iprompt"
61variables respectively.
62
63LSB Functions - The previous lfs-bootscripts sourced a functions file
64located at /etc/rc.d/init.d/functions. This file has been renamed
65$distro-functions to segregate it from the old. The name is configurable
66by the rc.site configuration file ("DISTRO_MINI"). LSB defined functions are
67used where possible througout the individual scripts, but the $distro-functions
68file provides, easy to use wraper functions that start, stop, reload,
69force-reload, and restart programs, evaluate the numerical LSB return values,
70and print status messages to the screen and boot log. Both distro functions and
71LSB functions are documented directly in the scritps located at
72/etc/init.d/$distro-functions and /lib/lsb/init-functions respectively.
73
74Pretier - By default, successful boot messages are prefixed with a single green
75astrik character, warning messages with two yellow astirks, and failures are
76prefixed with three red astriks. This provides a second 'quick glance' status
77when watching the boot messages fly by. Again, the prefixes are configurable
78(or completely removable) in the /etc/default/rc.site file.
79
80ConsoleLog - The sysctl script runs much earlier in the boot process, as a
81result, it negates the need for the consolelog script. Set 'kernel.printk = X'
82in your /etc/sysctl.conf file for equivalent functionality.
83
84Complete Rewrite - That doesn't mean that code wasn't reused when possible,
85so to Alexander Patrakov, Archiac, Bruce Dubbs, Bryan Kadzban, Dan Nicholson,
86Gerard Beekmans, Jeremy Huntwork, Jim Gifford, Mathias Benkmans, Matthew
87Burgess, Nathan Coulson, and countless other contributors: Thanks for the help
88and guidance.
89
90Please report any bugs to lfs-dev@linuxfromscratch.org.
91
92Thanks.
93
94-- DJ Lucas
95dj@linuxfromscratch.org
96
Note: See TracBrowser for help on using the repository browser.