| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | LSB-Bootscripts READMEThe scripts contained in this directory are a complete rewrite of theboot scripts from LFS-6.1. As is usually the case with a rewrite, there havebeen many changes:LSB Version 4.1 Compliant Scripts - Immediately noticable are the LSB headersin the rc.d scripts themselves.  Each script contains a usable header toallow for automating both the installation of, and determining properexecution order for the startup scripts.  These values can also be useddirectly in parallel boot setups.  Additionally, messages are displayed inone single write to the screen, after exit status is determined, so thatthey can be used in parallel setups.  I am not sure if this was the onlybarrier to auto language translation in the previous bootscripts.  Further,the messages are created from parts and only written to the screen in asingle command, so maybe no help at all WRT translated boot messages.AS OF 20080907, THESE SCRIPTS REQUIRE THE initd-tools PACKAGE.Dan Nicholson has recently released an initd-tools package that containLSB compliant install_initd and remove_initd programs written in C.See the INSTALL file for installation instructions.Path changes - The base directory for the bootscripts is now /etc. This ismostly to conform with mainstream distros. Of course, this is stillconfigurable in /etc/default/rc.site. The rcsysinit.d directory has beenremoved and and replaced with the shorter rcS.d. /etc/sysconfig has beenremoved in favor of /etc/default. The network service scripts have been movedto /lib/network-services and the the network configuration files to/etc/network. Values for short, and relatively static, configuration files(clock and network) have been included in the rc.site file directly.Distribution Independent - this original goal for the LFS scripts has beenstretched even further by providing both a global rc config file thatcontains (generally) static values, and a new rc.site config file to allowcustomization of messages as diplayed to the end user during the bootprocess. The format of messages printed to the screen is adjustablehere. Other options that were available in the previous versions of thelfs-bootscripts, and additional options such as message format and color, areconfigurable by the /etc/sysconfig/rc.site file.Single Environment - The rc script has been rewritten completely to allow asingle source of the boot configuration per runlevel change.  This configis inherited from rc's environment as opposed to being sourced everytime ascript is run. This does result in a negledgable decrease in boot time, butis simply better in principle.Boot Logging - The previous incarnation of the boot log didn't beginrecording events until the root filesystem was mounted read/write.  This hasbeen corrected by providing the /run tempfs  mount immediately after init handscontrol to the rc script.  The bootlog is generated on the tempfs and thenpassed to the log file before login. Additionally, shutdown events are nolonger recorded in the bootlog. They were pretty much useless and it reallywasn't what I'd call a *boot* log. Boot logging is on by default and isconfigurable in the /etc/default/rc.site file via the "BOOTLOG_ENAB" parameter.Interactive Boot - This feature has been included by default, and is alittle more polished than in previous versions. It does introduce a twosecond delay in the boot process (so that you have time to press a buttonto select interactive mode). This time value, and the option prompt itself,is configurable in the /etc/default/rc.site file via the "itime" and "iprompt"variables respectively.LSB Functions - The previous lfs-bootscripts sourced a functions filelocated at /etc/rc.d/init.d/functions.  This file has been renamed$distro-functions to segregate it from the old. The name is configurableby the rc.site configuration file ("DISTRO_MINI"). LSB defined functions areused where possible througout the individual scripts, but the $distro-functionsfile provides, easy to use wraper functions that start, stop, reload,force-reload, and restart programs, evaluate the numerical LSB return values,and print status messages to the screen and boot log. Both distro functions andLSB functions are documented directly in the scritps located at/etc/init.d/$distro-functions and /lib/lsb/init-functions respectively.Pretier - By default, successful boot messages are prefixed with a single greenastrik character, warning messages with two yellow astirks, and failures areprefixed with three red astriks.  This provides a second 'quick glance' statuswhen watching the boot messages fly by. Again, the prefixes are configurable(or completely removable) in the /etc/default/rc.site file.Complete Rewrite - That doesn't mean that code wasn't reused when possible,so to Alexander Patrakov, Archiac, Bruce Dubbs, Bryan Kadzban, Dan Nicholson,Gerard Beekmans, Jeremy Huntwork, Jim Gifford, Mathias Benkmans, MatthewBurgess, Nathan Coulson, and countless other contributors: Thanks for the helpand guidance.Please report any bugs to lfs-dev@linuxfromscratch.org.Thanks.-- DJ Lucasdj@linuxfromscratch.org
 |