README 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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-04-13). As is
  4. usually the case with a rewrite, there have been many changes:
  5. LSB Version 3.1 Compliant Scripts - Immediately noticable are the LSB headers
  6. in the rc.d scripts themselves. Each script contains a usable header to
  7. allow for automating both the installation of, and determining proper
  8. execution order for the startup scripts. These values can also be used
  9. directly in parallel boot setups. Additionally, messages are displayed in
  10. one single write to the screen, after exit status is determined, so that
  11. they can be used in parallel setups. I am not sure if this was the only
  12. barrier to auto language translation in the previous bootscripts. Further,
  13. the messages are created from parts and only written to the screen in a
  14. single command, so maybe no help at all WRT translated boot messages.
  15. LSB 3.1 Omissions - Unfortunately, this package is not completely LSB
  16. compliant as it lacks install-initd and remove-initd programs. The current
  17. popular flavor of these programs is written in Python, which, as you should
  18. know, is not installed until BLFS. I began work on a bash implementation,
  19. and have provided the needed functions to parse the LSB headers in the
  20. manage-functions script (insalled by default into /lib/lsb). Unfortunately,
  21. I have yet to complete the actual install-initd and remove-initd scripts,
  22. however, I do have an almost complete install-initd kept locally. I am
  23. currently working on a separate script to completely rewrite the symlinks
  24. should LFS default values not prove sufficient when working with scripts in
  25. the wild. I have not included either here because they are not yet complete
  26. or thoroughly tested, and due to the development process of lfs-bootscritps,
  27. would be included in a release tarball. If you would like to assist with the
  28. development of these scripts, or would even just like to see what I have so
  29. far, please email me privately. Of course, feel free to write your own if you
  30. do not like the manage-fucntions script (or bash).
  31. Distribution Independent - this original goal for the LFS scripts has been
  32. stretched even further by providing both a global rc config file that
  33. contains (generally) static values, and a new rc.site config file to allow
  34. customization of messages as diplayed to the end user during the boot
  35. process. The format of messages printed to the screen is adjustable
  36. here. As well, the other options that were available in the previous
  37. versions of the lfs-bootscripts, and additional options as discussed below,
  38. are configurable by the /etc/sysconfig/rc.site file.
  39. Single Environment - The rc script has been rewritten completely to allow a
  40. single source of the boot configuration per runlevel change. This config
  41. is inherited from rc's environment as opposed to being sourced everytime a
  42. script is run. This results in a negledgable decrease in boot time, but
  43. it is just better in principle.
  44. Boot Logging - The previous incarnation of the boot log didn't begin
  45. recording events until the root filesystem was mounted read/write. This has
  46. been corrected by providing a tempfs mount immediately after init hands
  47. control to the rc script. The bootlog is generated on the tempfs and then
  48. passed to the log file before login. Additionally, shutdown events are no
  49. longer recorded in the bootlog. They were pretty much useless and it really
  50. wasn't what I'd call a *boot* log. Boot logging is on by default and is
  51. configurable in the /etc/sysconfig/rc.site file.
  52. Interactive Boot - This feature has been included by default, and is a
  53. little more polished than my previous attempt. It does introduce a two
  54. second delay in the boot process (so that you have time to press a button
  55. to select interactive mode). This time value, and the option prompt itself,
  56. is configurable in the /etc/sysconfig/rc.site file.
  57. RC_BASE - The base directory for the bootscripts is now /etc, not
  58. /etc/rc.d. This is mostly to conform with mainstream distros, but other
  59. boot methods do expect that /etc/init.d is the location of bootscripts.
  60. Some distros provide a rc.d direcorty with symlinks to the rc*.d and init.d
  61. directories, I have not done that. /etc is the location now, get your
  62. flying fingers accustomed to it! Of course, this is still configurable in
  63. /etc/sysconfig/rc.site, and if the change is too great, I'll put it back.
  64. LSB Functions - The previous lfs-bootscripts sourced a functions file
  65. located at /etc/rc.d/init.d/functions. This file has been renamed
  66. $distro-functions to segregate it from the old. The name is configurable
  67. by the rc.site configuration file. Both old and new bootscripts can be
  68. used simultaneously in a SYS-V setup (with proper symlinks in place).
  69. LSB defined functions are used where possible, but the $distro-functions file
  70. provides, easy to use wraper functions that
  71. start/stop/reload/force-reload/restart programs, evaluate the numerical
  72. LSB return values, and print status messages to the screen. Both LFS
  73. functions and LSB functions are documented directly in the scritps located
  74. at /etc/init.d/$distro-functions and /lib/lsb/init-functions respectively.
  75. Pretier - Yeah, I just couldn't handle all the grey text... By default,
  76. successful boot messages are prefixed with a single green astrik character,
  77. warning messages with two yellow astirks, and failures are prefixed with
  78. three red astriks. This just provides a second 'quick glance' status when
  79. watching the boot messages fly by. Again, the prefixes are configurable (or
  80. completely removable) in the /etc/sysconfig/rc.site file.
  81. Complete Rewrite - Yep. That doesn't mean that code wasn't reused when
  82. possible, so Alexander, Bryan, Dan, Gerard, Jeremy, Jim, Mathias, Matthew,
  83. Nathan, and countless other contributors (whose names I've forgotten and will
  84. promptly be reminded of (please)) are due credit for these as well. That
  85. said, at very least, this is a complete reorganisation that I've tested to
  86. the best of my ability, but there probably are some hidden bugs that will
  87. come to lite when used more frequently. Please give me a shout _when_ you
  88. find them.
  89. Thanks.
  90. -- DJ Lucas
  91. dj@linuxfromscratch.org