README 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. LSB-V3 README
  2. The scripts contianed in this directory are a complete rewrite of the
  3. boot scripts from LFS-6.1 (updated for LFS-SVN about 2008-05-31). As is
  4. usually the case with a rewrite, there have been many changes:
  5. AS OF 20080907, THESE SCRIPTS REQUIRE THE NEW initd-tools PACKAGE.
  6. Dan Nicholson has recently released an initd-tools package that contain
  7. LSB compliant install_initd and remove_initd programs written in C.
  8. See the INSTALL file for installation instructions.
  9. LSB Version 3.2 Compliant Scripts - Immediately noticable are the LSB headers
  10. in the rc.d scripts themselves. Each script contains a usable header to
  11. allow for automating both the installation of, and determining proper
  12. execution order for the startup scripts. These values can also be used
  13. directly in parallel boot setups. Additionally, messages are displayed in
  14. one single write to the screen, after exit status is determined, so that
  15. they can be used in parallel setups. I am not sure if this was the only
  16. barrier to auto language translation in the previous bootscripts. Further,
  17. the messages are created from parts and only written to the screen in a
  18. single command, so maybe no help at all WRT translated boot messages.
  19. Distribution Independent - this original goal for the LFS scripts has been
  20. stretched even further by providing both a global rc config file that
  21. contains (generally) static values, and a new rc.site config file to allow
  22. customization of messages as diplayed to the end user during the boot
  23. process. The format of messages printed to the screen is adjustable
  24. here. As well, the other options that were available in the previous
  25. versions of the lfs-bootscripts, and additional options as discussed below,
  26. are configurable by the /etc/sysconfig/rc.site file.
  27. Single Environment - The rc script has been rewritten completely to allow a
  28. single source of the boot configuration per runlevel change. This config
  29. is inherited from rc's environment as opposed to being sourced everytime a
  30. script is run. This results in a negledgable decrease in boot time, but
  31. it is just better in principle.
  32. Boot Logging - The previous incarnation of the boot log didn't begin
  33. recording events until the root filesystem was mounted read/write. This has
  34. been corrected by providing a tempfs mount immediately after init hands
  35. control to the rc script. The bootlog is generated on the tempfs and then
  36. passed to the log file before login. Additionally, shutdown events are no
  37. longer recorded in the bootlog. They were pretty much useless and it really
  38. wasn't what I'd call a *boot* log. Boot logging is on by default and is
  39. configurable in the /etc/sysconfig/rc.site file.
  40. Interactive Boot - This feature has been included by default, and is a
  41. little more polished than my previous attempt. It does introduce a two
  42. second delay in the boot process (so that you have time to press a button
  43. to select interactive mode). This time value, and the option prompt itself,
  44. is configurable in the /etc/sysconfig/rc.site file.
  45. Path changes - The base directory for the bootscripts is now /etc, not
  46. /etc/rc.d. This is mostly to conform with mainstream distros, but other
  47. boot methods do expect that /etc/init.d is the location of bootscripts.
  48. Some distros provide a rc.d direcorty with symlinks to the rc*.d and init.d
  49. directories, I have not done that. /etc is the location now, get your
  50. flying fingers accustomed to it! Of course, this is still configurable in
  51. /etc/sysconfig/rc.site, and if the change is too great, I'll put it back.
  52. I've also removed the rcsysinit.d directory and replaced it with rcS.d.
  53. LSB Functions - The previous lfs-bootscripts sourced a functions file
  54. located at /etc/rc.d/init.d/functions. This file has been renamed
  55. $distro-functions to segregate it from the old. The name is configurable
  56. by the rc.site configuration file. LSB defined functions are used where
  57. possible, but the $distro-functions file provides, easy to use wraper
  58. functions that start/stop/reload/force-reload/restart programs, evaluate
  59. the numerical LSB return values, and print status messages to the screen.
  60. Both LFS functions and LSB functions are documented directly in the scritps
  61. located at /etc/init.d/$distro-functions and /lib/lsb/init-functions
  62. respectively.
  63. Pretier - Yeah, I just couldn't handle all the grey text... By default,
  64. successful boot messages are prefixed with a single green astrik character,
  65. warning messages with two yellow astirks, and failures are prefixed with
  66. three red astriks. This just provides a second 'quick glance' status when
  67. watching the boot messages fly by. Again, the prefixes are configurable (or
  68. completely removable) in the /etc/sysconfig/rc.site file.
  69. Complete Rewrite - Yep. That doesn't mean that code wasn't reused when
  70. possible, so Alexander, Bryan, Dan, Gerard, Jeremy, Jim, Mathias, Matthew,
  71. Nathan, and countless other contributors (whose names I've forgotten and will
  72. promptly be reminded of (please)) are due credit for these as well. That
  73. said, at very least, this is a complete reorganisation that I've tested to
  74. the best of my ability, but there probably are some hidden bugs that will
  75. come to lite when used more frequently. Please give me a shout _when_ you
  76. find them.
  77. Thanks.
  78. -- DJ Lucas
  79. dj@linuxfromscratch.org