ChangeLog 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  1. 2012-06-17 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  2. * Only mount /run in mountvirtfs if it is not already mounted
  3. (from an initrd).
  4. * Force the /dev/shm->/run/shm symlink
  5. * Skip making LVM virtual groups unavailable at shutdown
  6. because the / or swap partitions may be still in use.
  7. 2012-05-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  8. * Copy all entries in /lib/udev/devices to /dev in mounvirtfs
  9. 2012-05-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  10. * Remove mkdir from mountvirtfs because fs is read only
  11. 2012-04-09 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  12. * General update of network scripts ifup/ifdown and services
  13. ** Add if_true utility function to init_functions
  14. ** Change variable INTERFACES to COMPONENT_INTERFACES for bridge interface
  15. ** ifdown now only uses the first SERVICE
  16. ** Updated ifup.8 to reflect current usage
  17. ** ifup
  18. *** Move interface up logic to after service scripts. Eliminates the
  19. need for the LINK_CHECK variable.
  20. *** Sets the GATEWAY if the variable is set
  21. *** Add MTU logic to ifup
  22. 2012-01-22 Matt Burgess <matthew@linuxfromscratch.org>
  23. * lfs/init.d/udev: Change udevd path following upstream changes to its
  24. location
  25. 2011-12-23 Matt Burgess <matthew@linuxfromscratch.org>
  26. * lfs/init.d/mountvirtfs: Correct permissions on /run/shm
  27. 2011-11-28 DJ Lucas <dj@linuxfromscratch.org>
  28. * lfs/init.d/mountfs: Add '-t nosysfs' to umount command
  29. * lfs/init.d/mountvirtfs: remove unneeded spaces in output
  30. * lfs/init.d/rc: Correct double interactive prompt and set prompt defaults
  31. * lfs/init.d/setclock: Remove screen output from start case (udev)
  32. * lfs/init.d/udev{,_retry}: Restore output to screen and log
  33. * lfs/sbin/ifup: Change "..." to ": " (not awaiting additonal output)
  34. 2011-11-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  35. * The following are from suggestions by DJ Lucas
  36. ** General cleanup of scripts
  37. ** Move consolelog function to rc
  38. ** Clean up boot logging functions
  39. ** Fix interactive prompt between run level S and target run level
  40. 2011-10-06 Bryan Kadzban <bryan@linuxfromscratch.org>
  41. * Add configuration for udev_retry, and remove --type=failed (which does
  42. not work with recent udev versions anyway, since no events can possibly
  43. trigger it). Start with just the "rtc" subsystem. BLFS should eventually
  44. add "sound" to this file, and perhaps others.
  45. 2011-09-18
  46. * Review and update of changes made in previous change.
  47. ** Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
  48. ** Move network services to /lib/services.
  49. ** Move init-functions to /lib/lsb.
  50. *** /lib/lsb is a symlink to /lib/services.
  51. * Create convenience symlink /etc/init.d->/etc/rc.d/init.d.
  52. * Add help and man pages to upup/ifdown.
  53. * Append /run/var/bootlog to /var/log/boot.log at the end of
  54. the boot sequence.
  55. * Add capabiltiy to step through the boot scripts at boot time
  56. * Optionally allow environment variables in sysconfig directory's
  57. console, network, and clock files to be placed in rc.site.
  58. * Add an optional FASTBOOT parameter to set /fastboot when rebooting.
  59. 2011-07-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  60. * Major rewrite of all LFS scripts
  61. ** Move ifup/ifdown to /sbin
  62. ** Move functions and network services to /lib/boot
  63. ** Remove contrib directory
  64. ** Move all READ commands to functions and allow the user to specify
  65. HEADLESS=1 to skip READ commands
  66. ** Add /etc/sysconfig/init_params for adding environmental parameters
  67. to all functions used in bootscripts
  68. ** Move network configuration to /etc/sysconfig/ifconfig.*. The
  69. ifconfig files can have any extention. Use IFACE parameter to
  70. specify the target network interface within the configuration file.
  71. ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of
  72. files in /tmp at bootup. Specify the variable in
  73. /etc/sysconfig/init_params.
  74. 2011-05-31 DJ Lucas <dj@linuxfromscratch.org>
  75. * lfs/init.d/udev: Add multiple udev triggers for both subsystems and
  76. devices per upstream recommendation.
  77. 2011-04-19 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  78. * lfs/init.d/mountvirtfs: Add creation of /run/{var,lock,shm}.
  79. * lfs/init.d/udev: Add /dev/shm -> /run/shm symlink.
  80. 2011-04-18 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  81. * lfs/init.d/mountvirtfs: Change name from mountkernfs to mountvirtfs.
  82. Add mounting of /run filesystem.
  83. 2010-05-29 Matt Burgess <matthew@linuxfromscratch.org>
  84. * lfs/init.d/udev: Only copy /lib/udev/devices/null, as Udev >= 155 copies
  85. devices from /lib/udev/devices to /dev itself. Udevd still needs /dev/null
  86. present before starting up though.
  87. 2010-04-20 Bryan Kadzban <bryan@linuxfromscratch.org>
  88. * lfs/init.d/udev, lfs/init.d/udev_retry: Add --action=add, to handle udev
  89. version 152 and newer, which send "change" events by default in udevtrigger
  90. now.
  91. 2010-01-24 Matthew Burgess <matthew@linuxfromscratch.org>
  92. * lfs/init.d/udev: Check to see if /dev is already mounted, as it may be if
  93. under an initramfs environment. See ticket #2550.
  94. 2009-08-14 Bryan Kadzban <bryan@linuxfromscratch.org>
  95. * lfs/init.d/udev_retry: Use "udevadm trigger --type=failed", which
  96. apparently replaced "--retry-failed" some time ago. "--retry-failed" is
  97. removed in udev-146.
  98. 2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
  99. * lfs/init.d/functions:
  100. * lfs/sysconfig/network-devices/ifup:
  101. Updated line widths to accomodate pdf generation in both the above
  102. files.
  103. 2008-10-27 DJ Lucas <dj@linuxfromscratch.org>
  104. * lfs/init.d/cleanfs: Removed '! -newer /proc' from find commands in
  105. check for stale files in /var/lock and /var/run.
  106. * Makefile: Reversed cleanfs and udev_retry scripts so that cleanfs
  107. runs immediately after mountfs.
  108. 2008-10-26 Dan Nicholson <dnicholson@linuxfromscratch.org>
  109. * lfs/init.d/functions: Remove stale pid files when encountered
  110. in loadproc/killproc/reloadproc. When the bootscript specifies
  111. a pid file to use with the "-p pidfile" argument, *proc
  112. functions previously bailed out when the referenced file
  113. contains an invalid pid.
  114. 2008-10-23 DJ Lucas <dj@linuxfromscratch.org>
  115. * lfs/init.d/console: Removed BROKEN_COMPOSE as kernel patch has
  116. been accepted upstream.
  117. 2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org>
  118. * lfs/init.d/udev, lfs/init.d/udev_retry: Use new udevadm program.
  119. 2007-08-20 DJ Lucas <dj@linuxfromscratch.org>
  120. * lfs/init.d/setclock: Added missing 'stop' argument to usage text
  121. 2007-08-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
  122. * lfs/init.d/checkfs: Don't suppress error messages from the screen.
  123. 2007-07-18 Dan Nicholson <dnicholson@linuxfromscratch.org>
  124. * Makefile, lfs/init.d/consolelog: New bootscript controlling the
  125. kernel log level on the console. This is controlled by the LOGLEVEL
  126. variable in /etc/sysconfig/console.
  127. * lfs/init.d/modules: Remove the log level handling since this is
  128. done in the consolelog script now.
  129. * lfs/init.d/modules: Clean up the script by removing the file
  130. descriptor duplication and instead just redirecting
  131. /etc/sysconfig/modules to the input of the while loop.
  132. 2007-06-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
  133. * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock,
  134. lfs/init.d/modules, lfs/sysconfig/network-devices/if{up,down}:
  135. Don't suppress stderr during bootscripts unless necessary. This
  136. would prevent potentially critical messages from reaching the screen.
  137. 2007-04-24 Dan Nicholson <dnicholson@linuxfromscratch.org>
  138. * lfs/init.d/functions: When killproc is executed, it checks that
  139. the process is still running, sleeps if it is, then checks again.
  140. The sleep is 1 second in between checks. By sleeping for 0.1 seconds
  141. in between checks, killproc is much faster as it's wasting much
  142. less time sleeping in the normal case that the process has died
  143. after a short delay.
  144. 2007-04-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
  145. * lfs/init.d/functions: Redirect stderr when using kill to suppress
  146. output.
  147. * lfs/init.d/functions: killproc() was not handling the case where a
  148. pidfile is passed to the function. The logic with the signal to be
  149. used was causing issues with the handling of pidfiles. This has been
  150. fixes, and now killproc() will recheck the process if the signal
  151. was TERM (the default) or KILL.
  152. * lfs/init.d/functions: statusproc() has been changed to use pidofproc()
  153. instead of the deprecated getpids(). Additionally, it now accepts
  154. the -p argument to specify a pidfile.
  155. * lfs/init.d/functions: Currently, statusproc() always returns
  156. successfully, and the only way to know if the process is running
  157. is to parse the output. This changes statusproc() to return the
  158. status of pidofproc(), which will return unsuccessfully if the
  159. requested process is not running.
  160. * lfs/init.d/functions: Changed reloadproc() to use pidofproc() and
  161. respect the -p argument for pidfiles.
  162. * lfs/init.d/sysklogd: Remove a useless argument to reloadproc().
  163. 2007-03-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
  164. * lfs/init.d/functions: If pidofproc() is passed the -p argument
  165. it can bomb testing a null variable with an integer expression.
  166. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  167. * lfs/init.d/mountfs, lfs/init.d/console, lfs/init.d/setclock,
  168. lfs/init.d/mountkernfs: &> redirection is not supported in POSIX.
  169. Fortunately, it's equivalent to >word 2>&1 according to bash(1).
  170. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  171. * lfs/init.d/console: POSIX says that shells only need to trap on
  172. signals. Trapping on ERR isn't always supported. Conditionals have
  173. been added to set the $failed variable in spots that seemed
  174. appropriate for checking errors.
  175. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  176. * lfs/init.d/functions: Use arithmetic expansion and string length,
  177. which are both mandated by POSIX, rather than spawning two processes
  178. every time boot_mesg() is called.
  179. 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
  180. * lfs/init.d/functions: In order to provide an `echo' which provides
  181. handles the -e and -n options for all POSIX shells, a feature test
  182. is added which stores its result in $ECHO. /bin/echo will be used
  183. if the default echo is not capable. Changed the existing functions
  184. to reference $ECHO when needed.
  185. * lfs/init.d/console: Use $ECHO when -en is needed.
  186. 2007-02-03 Bryan Kadzban <bryan@linuxfromscratch.org>
  187. * ChangeLog: Rename from CHANGELOG, start using GNU style entries.
  188. * Makefile: Move setclock before checkfs. Fixes #1948.
  189. 2006-11-25 Bryan Kadzban <bryan@linuxfromscratch.org>
  190. * lfs/init.d/udev_retry: Copy Debian's "copy generated rules" initscript
  191. code, to clean up when the rule_generator scripts run before / is
  192. writable. (Since the rule_generator code is from Debian, I assume their
  193. cleanup code is appropriate.)
  194. 2006-10-15 Bryan Kadzban <bryan@linuxfromscratch.org>
  195. * lfs/init.d/udev_retry: Fix to work with udev >= 099.
  196. n/a - June 2, 2006
  197. * Removed console config file and makefile targets.
  198. * Removed references to /dev/bug and bugreport in udevand
  199. udev_retry bootscripts. (DJ Lucas)
  200. n/a - April 17, 2006
  201. * Updated udev script to use the new udevsettle program.
  202. * Added udev_retry script for systems that have /usr on a different
  203. partition or for some other reason fail the initial replay. (Archaic)
  204. n/a - April 15, 2006
  205. * Cleaned up contrib directory. Removed: contrib/init.d,
  206. contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
  207. patch. (DJ Lucas)
  208. n/a - April 14, 2006
  209. * Merged changes from udev_update branch (DJ Lucas)
  210. * Replaced a return with an exit and reversed comment changes in
  211. udev bootscript. (Dan Nicholson)
  212. * Replaced walk_sysfs function in udev bootscript with new udevtrigger
  213. program and move wait_for_uevents function inline. (DJ Lucas)
  214. * Removed extra evaluate_retval in udev bootscript. (Ken Moffat)
  215. * Wait for uevents to be processed in the udev script. See ticket
  216. #1720 for details. (Matthew Burgess)
  217. n/a - March 21, 2006
  218. * Removed old references to boot_log function and arguments passed
  219. to boot_mesg_flush in echo_* functions. (DJ Lucas)
  220. n/a - March 10, 2006
  221. * Moved src argument to ipv4-static-route service script and
  222. removed from ipv4-static service script. (DJ Lucas)
  223. n/a - March 8. 2006
  224. * Correct sourced path in checkfs script. (Matthew Burgess)
  225. n/a - December 31, 2005
  226. * Replaced /etc/rc.d with ${rc_base} in checkfs. (Vincent Fretin)
  227. n/a - December 24, 2005
  228. * Added UTF-8 support to console script. (Alexander E. Patrakov)
  229. n/a - September 11, 2005
  230. * Removed text wraping and boot logging.
  231. * Changed killproc to use warning if not running
  232. * Changed 'print_status warning' to use old style output
  233. * Fixed display error with LSB init-functions script
  234. * Made above killproc/print_status changes in enhanced
  235. bootscripts.
  236. * Made logger service configurable in enhanced
  237. bootscripts. (DJ Lucas)
  238. n/a - August 14, 2005
  239. * Added -s flag to pidofproc() for backwards
  240. compatibility (DJ Lucas)
  241. * Fixed erronous values returned by pidofproc() which
  242. broke the functionality of statusproc (DJ Lucas)
  243. n/a - July 1, 2005
  244. * Changed a == to a = in lfs/init.d/functions, in the boot_mesg
  245. function for ash compliancy (Nathan Coulson)
  246. n/a - June 26, 2005
  247. * Removed consolelog script from contrib
  248. * Updated interactive rc script in contrib and added
  249. README.rc-Interactive, added install target to the
  250. Makefile. (DJ Lucas)
  251. 3.2.2 - May 29, 2005
  252. * Tagged as 3.2.2 (Nathan Coulson)
  253. n/a - May 26, 2005
  254. * Added minimal target for cross-lfs book (Jim Gifford)
  255. * Fixed raq2 patch (Jim Gifford)
  256. 3.2.1 - May 1, 2005
  257. * Tagged as 3.2.1 (Nathan Coulson)
  258. n/a - April 17, 2005
  259. * removed touch from hotplug bootscript (Matthew Burgess)
  260. * moved commands around in localnet bootscript (Andrew Benton)
  261. 3.2.0 - March 30, 2005
  262. * Changed from syslog-ng to sysklogd (Archaic)
  263. * Temporairly changed loadproc to return 0 if the program is
  264. already running (Nathan Coulson)
  265. * Fixed (by reverting) ifup/ifdown/network (Nathan Coulson),
  266. Reported by Jim Gifford
  267. * Fixed network up/down along with adding support of ONHOTPLUG
  268. * Tagged as 3.2.0
  269. n/a - March 19, 2005
  270. * Updated RaQ2 patch (Jim Gifford)
  271. * Added net.agent for Hotplug of Network adapters in contrib
  272. (Jim Gifford)
  273. n/a - March 16, 2005
  274. * Reverted the change from loadproc to start_daemon,
  275. Moved compatibility code into one single function.
  276. (Nathan Coulson)
  277. * Readded the ONHOTPLUG option for ifup/ifdown (Nathan Coulson)
  278. * Fixed killproc's output
  279. n/a - March 01, 2005
  280. * Added CHECK_LINK variable in ifconfig.*/*, so if the
  281. interface does not exist, it will not fail.
  282. (Nathan Coulson)
  283. n/a - February 19, 2005
  284. * Added evaluate_retval to the end of loadproc and killproc.
  285. lsb does not say that killproc should print [ OK ],
  286. but required for compatibility. (Nathan Coulson)
  287. n/a - February 9, 2005
  288. * Accidently mounted /dev with 775 instead of 755, fixed
  289. (Reported by Alexander E. Patrakov)
  290. n/a - February 9, 2005
  291. * Bugfix for /dev, now mounted with 755 permission
  292. n/a - February 8, 2005
  293. * changed pidof, so it doesnt check the process id
  294. of running bootscripts, and to process shell scripts
  295. (Nathan Coulson)
  296. n/a - February 6, 2005
  297. * Updated main functions file with lsb functions file
  298. Should now be LSB compliant (Nathan Coulson)
  299. n/a - January 10, 2005
  300. * Moved ONBOOT check back to network (Nathan Coulson)
  301. * Removed ONHOTPLUG check (Nathan Coulson)
  302. n/a - January 6, 2005
  303. * fixed mountkernfs output (Nathan Coulson)
  304. * reverted mountfs fakemounting (Nathan Coulson)
  305. n/a - January 5, 2005
  306. * Attempted to simplify network bootup files (Nathan Coulson)
  307. * Modified mountkernfs to use mountpoint (Nathan Coulson)
  308. * Assuming sysfs is always mounted (Nathan Coulson)
  309. * Moved fakemount to below mounting (Nathan Coulson)
  310. * Removed -t noramfs from umount, as we now use tmpfs (Nathan Coulson)
  311. * moved sysctl from mountkernfs to sysctl (Nathan Coulson)
  312. * Added -q to sysctl (Nathan Coulson)
  313. n/a - January 2, 2005
  314. * Fixed statusproc output. (DJ Lucas)
  315. 3.1.0 - December 31, 2004
  316. * fixed textoutput
  317. * Tagged as 3.1.0
  318. n/a - December 30, 2004
  319. * Fixed name of LSB Functions file
  320. * Changed boot_mesg to act like echo instead of echo -n, boot_mesg now
  321. takes the -n argument if you do not wish to goto the next line
  322. 3.0.1 - December 25, 2004
  323. * Released as 3.0.1
  324. n/a - December 20, 2004
  325. * Cleaned up header.
  326. * Added RaQ2 Patch
  327. n/a - December 16, 2004
  328. * Fixed a text typo in udev, tmpfs instead of ramfs (Steve Crosby)
  329. n/a - December 14, 2004
  330. * Fixed a warning with find in cleanfs
  331. 3.0 - December 8, 2004
  332. n/a - December 5, 2004
  333. * Moved bootlog to use local2 service to avoide conflict with
  334. dhcpcd (DJ Lucas)
  335. 3.0-rc1 - December 1, 2004
  336. * rc-Interactive added (DJ Lucas)
  337. * rc-Interactive moved to contrib (Nathan Coulson)
  338. n/a - November 27, 2004
  339. * Moved bootlog to use local1 to avoid conflict with ppd (DJ Lucas)
  340. n/a - November 25, 2004
  341. * Added consolelog to contrib/sysconfig (DJ Lucas)
  342. * Rewrite of line wraping in boot_mesg and various fixes
  343. related to boot_mesg changes (DJ Lucas, Alexander Patrakov)
  344. * syslog-ng is now installed by default (Jeremy Utley)
  345. * hotplug is now installed by default (Jeremy Utley)
  346. * udev now uses /sbin/hotplug as the default hotplug handler
  347. (Nathan Coulson)
  348. * udev now mounts a tmpfs instead of a ramfs onto /dev,
  349. as suggested by Greg K-H (Nathan Coulson)
  350. * Created contrib/lsb, and added a LSB compliant functions file
  351. (Nathan Coulson, and Alexander Patrakov)
  352. * Modified find [requires find 4.2.3+] (Matthew Burgess)
  353. n/a - November 20, 2004
  354. * Modifed modules script to return to previous kernel message
  355. level (DJ Lucas)
  356. n/a - November 02, 2004
  357. * Added sysctl -p to mountkernfs (Matthew Burgess, DJ Lucas)
  358. n/a - October 07, 2004
  359. * statusproc modified not to send data to bootlog (Nathan Coulson)
  360. * Fixed halt commands in checkfs and udev (James Robertson)
  361. n/a - October 04, 2004
  362. * Fixes to commit on 2004/09/30 (James Robertson)
  363. * Revert a few changes until later (Nathan Coulson)
  364. * Added a warning about switching from a 8bit font
  365. to a 9bit font (Alexander Patrakov)
  366. n/a - September 30, 2004
  367. * Finished off boot_mesg() (James Robertson)
  368. * Standardized all scripts to same variable format and other
  369. internal sh/bash function calls (James Robertson)
  370. * Fully implemented boot_mesg across all scripts in sysconfig
  371. and init.d (James Robertson)
  372. n/a - September 26, 2004
  373. * Added BOOTMESG_PREFIX variable, so users can optionally set a
  374. prefix for boot messages (James Robertson)
  375. * Fixed localnet status, to use ip instead of ifconfig (Jim Gifford)
  376. * Added consolelog to contrib (DJ Lucas)
  377. * loadproc and killproc can have the -nomsg parameter to avoid
  378. calling evaluate_retval or print_status (Jim Gifford)
  379. * boot_mesg no longer explicitly adds a \n onto end of lines
  380. * Added a function called boot_mesg_flush, which can
  381. dump the BOOTMESG to the bootlog. This helps avoid making
  382. everything have to end in OK/WARN/FAIL (Nathan Coulson)
  383. n/a - September 24, 2004
  384. * Removed /dev/udev.tdb test
  385. n/a - September 23, 2004
  386. * Fixed boot_log so it output's $@'s contents, not @$
  387. * Added support for colors in boot_mesg (James Robertson)
  388. * Modified udev's error checking
  389. * Modified hotplug's error checking
  390. * Converted checkfs's error handling to use boot_mesg with
  391. color support
  392. * Added $INFO color to functions (James Robertson)
  393. n/a - September 22, 2004
  394. * Removed the dependency on wl by replacing it with grep (Bryan Kadzban)
  395. * Fixed getpids, to remove unused pids obtained from $PIDFILE
  396. * Removed ${NORMAL} from echo "$BOOTMESG" in functions, and removed
  397. space added to each additional sentence tacked onto BOOTMESG
  398. * boot_mesg now handles \n's properly, and does not dimish the size of
  399. the next line (James Robertson)
  400. * boot_log has been added. The echo_ functions commit the log,
  401. and then clear the BOOTMSG variable
  402. * All scriptes have been converted to use boot_mesg
  403. n/a - September 21, 2004
  404. * boot_mesg has been enhanced. Subsequent calls will overwrite
  405. previous text, and it will wrap text basedupon the variable ${WCOL}.
  406. (James Robertson)
  407. * Fixed mtu optional service typo (Kevin P Fleming)
  408. * Added SOURCE variable to ipv4-static-route (Kevin P Fleming)
  409. n/a - September 16, 2004
  410. * nework interfaces are now brought down in reverse order
  411. n/a - September 15, 2004
  412. * Added blue bracket, from dj's 3.0-pre1 bootscript package
  413. [echo_failure, echo_warning, and echo_ok]
  414. * Added a new function called boot_mesg, meant to replace the echo
  415. command.
  416. This will give us the posibility of doing logging at a later date
  417. * Do not set COLUMNS if COLUMNS is already set
  418. * Modified getpids, loadproc, killproc, reloadproc, and statusproc as
  419. done by DJ
  420. 2.2.3 - September 04, 2004
  421. * Tagged as 2.2.3
  422. n/a - September 04, 2004
  423. * Added new script to contrib for syslog-ng, which is now part of
  424. LFS-Unstable, and a new Makefile target install-syslog-ng which
  425. removes the sysklogd links, and replaces them with syslog-ng (JU)
  426. 2.2.2 - August 11, 2004
  427. * Tagged as 2.2.2
  428. n/a - August 7, 2004
  429. * Added missing error redirect (/dev/null) in getpids. (DJ)
  430. n/a - August 4, 2004
  431. * Added MODE, DIRMODE, and CONFMODE variables to the makefile
  432. to allow permissions to be set at install. (DJ)
  433. n/a - July 31, 2004
  434. * Moved PIDFILE check to getpids and removed arguments from
  435. killproc and reloadproc. Signals are now set at begining of
  436. funtcions script with KILLDELAY. (DJ)
  437. * Added a optional service script which can set the MTU for a given
  438. interface
  439. n/a - July 21, 2004
  440. * Committed DJ Lucas's patch for the killproc function. It no
  441. longer requires arguments if PIDFILE is set
  442. * added --backup to all sysconfig configuration files, so they are not
  443. replaced on a make install
  444. n/a - July 13, 2004
  445. * Added the PEER variable to the ifconfig.*/* file, done by
  446. Kevin P. Fleming
  447. 2.2.1 - July 12, 2004
  448. * Tagged as 2.2.1
  449. n/a - July 12, 2004
  450. * Hotplug was moved from rcsysinit.d to rc{1,2,3,4,5} to help bring
  451. up/down network interfaces started by hotplug. This has been revoked
  452. at this time
  453. * Networking interfaces are now brought down in reverse order
  454. * Moved the ONBOOT check to within ifup/ifdown, so we can bring up/down
  455. the interfaces at boottime/shutdown properly, done by Kevin P. Fleming
  456. * Use PREFIX instead of NETMASK for adding addresses in ipv4-static,
  457. done by Kevin P. Fleming
  458. * Fix reversal of services inside ifconfig.* directories in ifdown,
  459. done by Kevin P. Fleming
  460. * Add ipv4-static-route service, supplied by Kevin P. Fleming
  461. 2.2.0 - July 12, 2004
  462. * Tagged as 2.2.0
  463. n/a - July 11, 2004
  464. * Minor script output changes
  465. * Repaired networking scripts broken in previous commits
  466. n/a - July 10, 2004
  467. * We now use the ip program [from iproute2] instead of ipconfig
  468. [net-tools] to bring up/down ethernet interfaces, and local
  469. connections, submitted by Jim Gifford
  470. * Removed gateway backward compatibility
  471. * Removed ifup-eth0 ifdown-eth0 compatibility
  472. * Removed the "assume SERVICE=static if SERVICE is unset" compatibility
  473. * Pass the IFCONFIG environmental variable to services, so they can
  474. locate the file with the parameters they must read
  475. * Rename static to ipv4-static
  476. * Stage1 for network configuration via directories, ifup and ifdown
  477. modified, and the static service modified
  478. * Stage2 for network configuration via directories complete, network was
  479. modified to check within subdirectories for ONBOOT=yes. Final Stage
  480. n/a - July 8, 2004
  481. * Changed iso01 to lat1 everywhere in /etc/sysconfig/console. This
  482. fixes the problem with line-drawing characters.
  483. n/a - July 7, 2004
  484. * Halted the computer, if unable to mount /dev as a ramfs
  485. n/a - July 6, 2004
  486. * Moved the hotplug bootscript back to contrib, it will not be used in
  487. the testing branch of the lfs book at this time
  488. n/a - July 4, 2004
  489. * Modified ifup and ifdown to be hotplug aware
  490. n/a - July 3, 2004
  491. * Change the check for ONBOOT into a source within a subshell
  492. n/a - July 1, 2004
  493. * Moved hotplug start to runlevels 3-5 from sysinit
  494. n/a - June 30, 2004
  495. * Pass -depth in cleanfs
  496. n/a - June 29, 2004
  497. * Made the grep for ONBOOT in the network script more exact
  498. 2.1.2 - June 27, 2004
  499. * Install the automatic module loading script by default
  500. * Tagged as 2.1.2
  501. n/a - June 26, 2004
  502. * Fixed font for UK in /etc/sysconfig/console
  503. n/a - June 23, 2004
  504. * Fixed a typo in the hotplug installation procedure
  505. n/a - June 21, 2004
  506. * Re-ordered the "mount" and "echo" commands in the udev script, to
  507. prevent a possible race
  508. * Converted the udev script to use udevsend/udevd
  509. * Moved removal of /fastboot and /forcefsck to just after the root fs
  510. becomes writable, and dropped the removal of /etc/nologin
  511. * Cleaned and tweaked both the output and actions of cleanfs
  512. * Removed the disabling of hotplug from sendsignals
  513. * Removed anything that might call "rmmod" in hotplug, since rmmod is
  514. notoriously troublesome in the 2.6.x kernels, and call it with the
  515. stop argument from runlevels 0 and 6
  516. * Fixed previous modifications to the udev and cleanfs scripts
  517. n/a - June 20, 2004
  518. * Rolled back to the /dev/.udev.tdb check from 2.1.1, since the new
  519. one doesn't work as well, and the bug that caused it to change is
  520. now fixed
  521. n/a - June 18, 2004
  522. * Updated sysconfig/console
  523. * Fixed disabling hotplug in sendsignals
  524. * hotplug is now installed by default
  525. n/a - June 15, 2004
  526. * Reset /proc/sys/kernel/hotplug to /bin/true when running the "stop"
  527. command for hotplug
  528. * Cleaned the output of the mountkernfs script
  529. * Don't output "Creating files and directories" when it's a lie
  530. n/a - June 8, 2004
  531. * Changed the location the optional module script is installed to
  532. /etc/rc.d/rcsysinit.d/S05modules.
  533. n/a - June 4, 2004
  534. * Added a echo to the > /proc/sys/kernel/hotplug line, as > did not
  535. clear it
  536. n/a - June 3, 2004
  537. * Added '> /proc/sys/kernel/hotplug' to sendsignals, to disable hotplug
  538. events, which may start up new daemons
  539. * Added elementry bootup logging support. If it can write to
  540. /var/log/boot.log, it will
  541. * Removed logging support, it kept / from being remounted ro
  542. n/a - June 2, 2004
  543. * Reorganize what goes on in the udev script
  544. * Reorganize what goes on in the hotplug script
  545. * Moved setting /sbin/hotplug as the default hotplug manager into the
  546. hotplug script
  547. n/a - June 1, 2004
  548. * Removed usbfs from mountkernfs, and mountfs
  549. * Edited the udev script, so it'll always set /proc/sys/kernel/hotplug
  550. n/a - May 24, 2004
  551. * Added more example keymaps and font settings to /etc/sysconfig/console
  552. * Install the /etc/sysconfig/console file by default
  553. n/a - May 23, 2004
  554. * Changed the symlink for the optional modules script
  555. * Removed depmod from the optional modules script
  556. n/a - May 20, 2004
  557. * Removed the random script. There is not a strong enough case for
  558. adding it to the lfs-bootscripts.
  559. n/a - May 19, 2004
  560. * Added the random bootscript from blfs-bootscripts
  561. 2.1.1 - May 18, 2004
  562. * Fixed installation of modules configuration
  563. * Tagged as 2.1.1
  564. n/a - May 16, 2004
  565. * Added sysklogd configuration file
  566. * Added example /etc/sysconfig/console file
  567. * Do not attempt to populate /dev if that directory has already been
  568. set up earlier in bootup (such as on initramfs/initrd)
  569. * Prevent excessive kernel output once klogd starts
  570. * Added hotplug script
  571. n/a - May 15, 2004
  572. * Namespace rework (enumeration of scripts is now cleaner)
  573. * Removed directories: blfs, contrib/new-boot-0.2, contrib/rlv
  574. n/a - May 13, 2004
  575. * Repaired the console script
  576. * Added a check to cleanfs [createfiles], to make sure that we have
  577. a valid devicetype, if we have type=dev
  578. n/a - May 11, 2004
  579. * Added usbfs to mountkernfs and mountfs
  580. n/a - May 6, 2004
  581. * Don't use loadproc in localnet, it's not meant for that
  582. * Quote tests of $PIDFILE, so that things behave when it's empty
  583. * Removed unused kill -0 from killproc
  584. 2.1.0 - May 4, 2004
  585. * Update to the console script, prevent install of the console script
  586. * Chgrp /var/run/utmp to group utmp if it exists.
  587. * Moved udev from contrib to lfs
  588. * Moved GATEWAY setup from /etc/rc.d/init.d/network to
  589. /etc/sysconfig/network-devices/services/static
  590. * Use the contents of $PIDFILE, if it is set in the script
  591. * Tagged as 2.1.0.
  592. n/a - April 30, 2004
  593. * Moved the loadkeys script to console, and added setfont. Contributed
  594. by Alexander E. Patrakov
  595. 2.0.5 - April 29, 2004
  596. * Added the heimdal init script.
  597. * Tagged as 2.0.5
  598. 2.0.4 - April 27, 2004
  599. * Tagged as 2.0.4
  600. n/a - April 24, 2004
  601. * Added a example script for /etc/sysconfig/createfiles
  602. * Added a check for /sys before mounting sysfs
  603. * Added -t noramfs to umount on /etc/rc.d/init.d/mountfs.
  604. This will prevent /dev from being unmounted, if /proc/mounts
  605. is symlinked to /etc/mtab
  606. n/a - April 18, 2004
  607. * Small fix to a if statement in netfs
  608. n/a - April 17, 2004
  609. * Added the lisa bootscript, lisa is part of the KDE Network package
  610. * Add proper error checking to the mountfs script when writing out mtab
  611. * Add more comments to the udev script, and conditionalize various
  612. things that should've been done this way in the first place
  613. * Include a template module auto-loading configuration file instead of
  614. having syntax comments in the script itself
  615. n/a - April 12, 2004
  616. * Added a automatic modules loading script to the contrib directory
  617. submitted by Zack
  618. * Edited mountkernfs, so that if you can mount sysfs on /sys, it will
  619. be mounted at boottime. Should not affect 2.4 systems
  620. * Since all entries are added to /etc/mtab, we should not require
  621. the NO_FS variable. It has been removed from mountfs
  622. * Added the udev script into the contrib directory, submitted by Zack
  623. 2.0.3 - April 8, 2004
  624. * Updated cleanfs, so it can create devices. Supplied by Zack
  625. * Tagged as 2.0.3
  626. n/a - March 31, 2004
  627. * Changed "Press Enter" on unknown error to white
  628. * Moved S10swap to S20swap. When udev is added, it has to be
  629. ran before swap is setup
  630. n/a - March 29, 2004
  631. * Fixed the rc5.d symlink for ntp so it creates S26ntp instead
  632. of S26npt
  633. * Moved S20mountkernfs to S00mountkernfs in rcsysinit.d. Will help in
  634. the addition of udev in the future.
  635. n/a - March 27, 2004
  636. * Changed gdm path from hardcoded to program name. There are 2 spots
  637. gnome can be installed
  638. n/a - March 26, 2004
  639. * Updated fam daemon script. It now uses the famd daemon instead of fam
  640. n/a - March 24, 2004
  641. * Removed mount command out of nfs. the netfs script already handles
  642. this
  643. 2.0.2 - March 24, 2004
  644. * Edited cleanfs to solve a problem. [if /tmp does not exist, it
  645. could run the find command on the root filesystem]
  646. * Tagged as 2.0.2
  647. 2.0.1 - March 24, 2004
  648. * Found typo in BLFS MySQL Script.
  649. * Tagged as 2.0.1
  650. 2.0.0 - March 23, 2004
  651. * Tagged as 2.0.0, no changes from 2.0.0-pre2
  652. 2.0.0-pre2 - March 23, 2004
  653. * Cleaned the /tmp directory on bootup. find command supplied by Zack
  654. * Added a script which can automatically create files and directories
  655. on startup. [Handles files/directories, permissions, and user/group].
  656. Created by Zack
  657. * Added blfs/init.d/fam script
  658. * Tagged as 2.0.0-pre2
  659. n/a - March 20, 2004
  660. * Added create-service-dir target and removed from create-dirs
  661. * Changed service script install targets to use
  662. create-service-dir
  663. * Added check for dhcpcd service script for stale pid file
  664. Suggested by Jeremy
  665. * Added ifconfig to ipx service script for hosting device not up
  666. n/a - March 19, 2004
  667. * Added support for ETCDIR, and DESTDIR in the Makefile,
  668. compliments of Tushar
  669. * Renamed mountproc to mountkernfs
  670. * Updated the README file
  671. * Coloured the print_error_message in functions red
  672. * added stop to the setclock script
  673. * changed echo > to > in cleanfs, suggested by winkie
  674. * BLFS Scripts Added, collected by Zack
  675. * Edited killproc, so it checks for running pids, rather then
  676. the completion of the above kill command. Suggested by Zack
  677. * Added network services found in blfs, removed adsl. Submitted by
  678. DJ.
  679. 1.99.4 - March 17, 2004
  680. * Fixed one last halt line in checkfs script
  681. * Moved the directory structure around
  682. * Tagged as development release 1.99.4
  683. n/a - February 28, 2004
  684. * Added stty sane to the top of rc.d/init.d/rc. Hopefully, this will
  685. fix the problems
  686. * Also changed all instances of <ctrl-j> back to enter
  687. 1.99.3 - February 23, 2004
  688. * Tagged as development release 1.99.3
  689. n/a - February 19, 2004
  690. * Fixed checkfs script, so it will no longer continue to boot after a
  691. failure in the init.d/checkfs script. Tested with the help of Andre
  692. Müller. Fix suggested by Zack
  693. n/a - February 7, 2004
  694. * Added -s onto grep on network stop
  695. * Replaced a few more enter's with ctrl-j
  696. 1.99.2 - February 6, 2004
  697. * Added -s onto grep in network start
  698. * Tagged as development release 1.99.2
  699. n/a - February 4, 2004
  700. * Fixed $WARNING $NORMAL and $ERROR lines, broken by changes in
  701. functions
  702. * Changed above fixes to work with ash
  703. * Fixed checkfs symlink in Makefile
  704. * functions is no longer installed as executable
  705. * Added a check to checkfs, for errors above 16. These are caused by
  706. being unable to run fsck, either due to user input, or a unfunctional
  707. linux system
  708. 1.99.1 - February 2, 2004
  709. * Tagged as development release 1.99.1
  710. n/a - February 2, 2004:
  711. * Added -d to umount in mountfs.
  712. * Fixed network shutdown script
  713. * Fixed Makefile rc.6 to reboot
  714. * Added -s flag to grep command in rc.d/init.d/network -
  715. suppresses an error if no ifconfig.* files exist
  716. n/a - January 30, 2004:
  717. * Reorganized the network system to accept multiple services.
  718. * Ash Compliancy
  719. * Modified some scripts to follow template
  720. * Reorganized functions, based upon Ash Compliancy Patch
  721. * Added a sleep 5 to failure for evaulate_retval, and changed
  722. evaulate_retval to return true instead of false. Instead, a
  723. exit 1 will indicate the script terminated abnormally, causing
  724. your system to wait until you hit ctrl-J
  725. * Switched "Press enter to continue" to "Press <ctrl-j> to continue"
  726. * replaced 3 with $KILLDELAY in sendsignals
  727. * mountfs does not mount network filesystems [identified by _netdev
  728. in /etc/fstab]
  729. * removed unneded touch out of cleanfs
  730. n/a - January 30, 2004:
  731. * New maintainers for the lfs-bootscripts package are:
  732. Jeremy Utley (jeremy@linuxfromscratch.org)
  733. Nathan Coulson (nathan@linuxfromscratch.org)
  734. 1.11 - February 3rd, 2003:
  735. * /etc/mtab is now a real file and is handled correctly so there are
  736. no errors even when the machine has crashed.
  737. 1.10 - September 12th, 2002:
  738. * Fixed up checkfs to work with non-ext2 filesystems too (such as
  739. minix).
  740. 1.9 - April 5th, 2002:
  741. * reloadproc function had a missing '=' in the "failure 1" command (it
  742. should be failure=1)
  743. * When script exists with unexpected value, you have to hit "Enter" to
  744. continue, not just a random key as printed on the screen.
  745. * Moved K10sysklogd, K20sendsignals, K30mount and K40swap to
  746. K40sysklogd, K50sendsignals, K60mount, K70swap
  747. * Changed the #!/bin/sh lines to #!/bin/bash - /bin/sh may not be
  748. linked to bash but to some other shell of your choice. These scripts
  749. are written to work with bash, so you can't just run them when
  750. /bin/sh -> csh or ash or whatever else tickles your fancy. This
  751. change should fix that.
  752. 1.8 - March 14th, 2002:
  753. * Fixed the getpids function call so PPID's would be taken into account
  754. properly.
  755. * Added the 'contrib' directory with other people's bootscript
  756. implementations.
  757. 1.7 - March 10th, 2002:
  758. * Used code from Matthias Benkmann's simpleinit-msb @
  759. http://winterdrache.de/linux/newboot/index.html mainly for improved
  760. killproc function handling
  761. * When a requested process isn't running, or is already running, a
  762. warning "Not running" or "Already running" will be displayed. This
  763. was out of allignment due to a missing $CURS_UP
  764. * Removed "||exit" from ifup and ifdown scripts. They are useless.
  765. * Changed the loadkeys script to run "loadkeys -d" and removed the need
  766. for the /etc/sysconfig/keyboard file. The kbd patch fixes the
  767. "loadkeys -d" behaviour.
  768. 1.6 - February 26th, 2002:
  769. * replaced -o %PPID with -o $PPID throughout the functions script. This
  770. construct does what it's supposed to do (don't take PPID into account
  771. because this would fail if a running daemon and the bootscript have
  772. the same name).
  773. * added 'restart' to the swap script
  774. * instead of using 'echo -n' to supress newlines so the [ OK ] and
  775. related messages allign properly, substitute this with a single echo
  776. command that simply goes one line up before outputting anything. This
  777. also has the benefit that when programs have their own output (like
  778. swapon, fsck and loadkeys), there won't be an unwanted blank line
  779. between the program's output and the [ OK ] et all. messages.
  780. 1.5 - February 2nd, 2002:
  781. * added 'exit 1' to the statusproc function when there aren't enough
  782. parameters passed to it (such as the name of process to check for)
  783. 1.4 - February 2nd, 2002:
  784. * when /fastboot is detected and the message about it is printed,
  785. don't run 'exit 1' else the rc script will cause a [FAILED] to
  786. be printed which is undesired in this case.
  787. 1.3 - January 30th, 2002:
  788. * network script: changed default route detection by using the same
  789. method as used when starting the script: check if the GATEWAY
  790. variable is set
  791. * removed the emptying of /etc/mtab since it's a symlink to
  792. /proc/mounts now
  793. * added the mountproc script which mounts the proc system. This is done
  794. because we need proc mounted even before the mountfs script is ran
  795. (now that /etc/mtab is a symlink to /proc/mounts)
  796. * removed all absolute paths from command calls
  797. * added umask 022 and PATH="/bin:/usr/bin:/sbin:/usr/sbin" to the
  798. functions script. Every file now sources this so that umask and PATH
  799. are set correctly
  800. 1.2 - January 26th, 2002:
  801. * network script: detect if a default route is set before removing it