source: bootscripts/contrib/lsb-v3/README@ 010d108

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 6.4 6.5 6.6 6.7 6.8 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 010d108 was 010d108, checked in by DJ Lucas <dj@…>, 16 years ago

See contrib/lsb-v3/ChangeLog

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

  • Property mode set to 100644
File size: 6.0 KB
Line 
1LSB-V3 README
2
3The scripts contianed in this directory are a complete rewrite of the
4boot scripts from LFS-6.1 (updated for LFS-SVN about 2008-05-31). As is
5usually the case with a rewrite, there have been many changes:
6
7LSB Version 3.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
18LSB 3.1 Omissions - Unfortunately, this package is not completely LSB
19compliant as it lacks install_initd and remove_initd programs. The current
20popular flavor of these programs is written in Python, which, as you should
21know, is not installed until BLFS. I began work on a bash implementation,
22and have provided the needed functions to parse the LSB headers in the
23manage-functions script (insalled by default into /lib/lsb). Unfortunately,
24I have yet to complete the actual install_initd and remove_initd scripts,
25and have found bash to an unsuitable language to write a complete reorder
26due to the ammount of time for recursive funtions and loops to complete.
27Dan Nicholson has began work on initd-tools, a C implementaion of
28install_initd and remove_initd. At the time of writing (20080830) the
29programs themselves are not yet functional, however, the libraries used
30to parse the scripts and provide the dependency order are working as
31expected. I would expect a completely standards compliant set of programs,
32written in C very soon. Dans work can be viewed via git-web at
33http://gitweb.dwcab.com/?p=initd-tools.git;a=summary .
34
35Distribution Independent - this original goal for the LFS scripts has been
36stretched even further by providing both a global rc config file that
37contains (generally) static values, and a new rc.site config file to allow
38customization of messages as diplayed to the end user during the boot
39process. The format of messages printed to the screen is adjustable
40here. As well, the other options that were available in the previous
41versions of the lfs-bootscripts, and additional options as discussed below,
42are configurable by the /etc/sysconfig/rc.site file.
43
44Single Environment - The rc script has been rewritten completely to allow a
45single source of the boot configuration per runlevel change. This config
46is inherited from rc's environment as opposed to being sourced everytime a
47script is run. This results in a negledgable decrease in boot time, but
48it is just better in principle.
49
50Boot Logging - The previous incarnation of the boot log didn't begin
51recording events until the root filesystem was mounted read/write. This has
52been corrected by providing a tempfs mount immediately after init hands
53control to the rc script. The bootlog is generated on the tempfs and then
54passed to the log file before login. Additionally, shutdown events are no
55longer recorded in the bootlog. They were pretty much useless and it really
56wasn't what I'd call a *boot* log. Boot logging is on by default and is
57configurable in the /etc/sysconfig/rc.site file.
58
59Interactive Boot - This feature has been included by default, and is a
60little more polished than my previous attempt. It does introduce a two
61second delay in the boot process (so that you have time to press a button
62to select interactive mode). This time value, and the option prompt itself,
63is configurable in the /etc/sysconfig/rc.site file.
64
65Path changes - The base directory for the bootscripts is now /etc, not
66/etc/rc.d. This is mostly to conform with mainstream distros, but other
67boot methods do expect that /etc/init.d is the location of bootscripts.
68Some distros provide a rc.d direcorty with symlinks to the rc*.d and init.d
69directories, I have not done that. /etc is the location now, get your
70flying fingers accustomed to it! Of course, this is still configurable in
71/etc/sysconfig/rc.site, and if the change is too great, I'll put it back.
72I've also removed the rcsysinit.d and replaced it with rcS.d.
73
74LSB Functions - The previous lfs-bootscripts sourced a functions file
75located at /etc/rc.d/init.d/functions. This file has been renamed
76$distro-functions to segregate it from the old. The name is configurable
77by the rc.site configuration file. LSB defined functions are used where
78possible, but the $distro-functions file provides, easy to use wraper
79functions that start/stop/reload/force-reload/restart programs, evaluate
80the numerical LSB return values, and print status messages to the screen.
81Both LFS functions and LSB functions are documented directly in the scritps
82located at /etc/init.d/$distro-functions and /lib/lsb/init-functions
83respectively.
84
85Pretier - Yeah, I just couldn't handle all the grey text... By default,
86successful boot messages are prefixed with a single green astrik character,
87warning messages with two yellow astirks, and failures are prefixed with
88three red astriks. This just provides a second 'quick glance' status when
89watching the boot messages fly by. Again, the prefixes are configurable (or
90completely removable) in the /etc/sysconfig/rc.site file.
91
92Complete Rewrite - Yep. That doesn't mean that code wasn't reused when
93possible, so Alexander, Bryan, Dan, Gerard, Jeremy, Jim, Mathias, Matthew,
94Nathan, and countless other contributors (whose names I've forgotten and will
95promptly be reminded of (please)) are due credit for these as well. That
96said, at very least, this is a complete reorganisation that I've tested to
97the best of my ability, but there probably are some hidden bugs that will
98come to lite when used more frequently. Please give me a shout _when_ you
99find them.
100
101Thanks.
102
103-- DJ Lucas
104dj@linuxfromscratch.org
105
Note: See TracBrowser for help on using the repository browser.