1 2021-02-01 Bruce Dubbs <bdubbs@linuxfromscratch.org>
2 * Tweak mountfs to properly exit when an error is found.
4 2021-01-13 Xi Ruoyao <xry111@mengyan1223.wang>
5 * Use /run instead of deprecated /var/run
7 2020-10-02 DJ Lucas <dj@linuxfromscratch.org>
8 * make $local_fs a Should-Stop dependency of swap to allow clean install
10 2020-08-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
11 * Fix a minor display problem in checkfs
13 2019-10-31 DJ Lucas <dj@linuxfromscratch.org>
14 * Syslog should not start in runlevel 2 due to network logging
15 * Remove errant swap dependency for checkfs
17 2019-10-04 DJ Lucas <dj@linuxfromscratch.org>
18 * Additional updates to facilities in LSB headers to keep proper order
19 * Network script depends on firewall scripts from BLFS if activated
21 2019-09-02 DJ Lucas <dj@linuxfromscratch.org>
22 * Update facilities in LSB headers
24 2015-06-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
25 * Unmount network file systems before bringing down the network
26 * Spell out some mount/umount options
28 2017-03-25 DJ Lucas <dj@linuxfromscratch.org>
29 * Bash-4.4 changes no longer allow continue in function to pass to calling
32 2015-02-22 Bruce Dubbs <bdubbs@linuxfromscratch.org>
33 * Cosmetic changes to network scripts' output
35 2015-02-08 Bruce Dubbs <bdubbs@linuxfromscratch.org>
36 * Modify ipv4-static to support ethernet labels
37 * Output a newline if an interface is skipped during boot
39 2014-12-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
40 * Clarify rationale for sysklog run levels
42 2014-11-10 Bruce Dubbs <bdubbs@linuxfromscratch.org>
43 * Make /run/lock have 1777 permissions
45 2014-07-06 Bruce Dubbs <bdubbs@linuxfromscratch.org>
46 * Remove obsolete reference to /proc/sys/kernel/hotplug in udev boot script
48 2014-07-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
49 * Remove obsolete check for /proc/ksyms in modules boot script
51 2014-06-29 Bruce Dubbs <bdubbs@linuxfromscratch.org>
52 * Remove systemd references and files
54 2014-03-31 Bruce Dubbs <bdubbs@linuxfromscratch.org>
55 * Changes made to be consistent with common systemd functions
57 2013-08-21 Bruce Dubbs <bdubbs@linuxfromscratch.org>
58 * Delete duplicate entry in rc.site file.
60 2013-08-05 Bruce Dubbs <bdubbs@linuxfromscratch.org>
61 * Use STATIC_GATEWAY for ipv4-static-route purposes
63 2013-05-15 Bruce Dubbs <bdubbs@linuxfromscratch.org>
64 * Remove unneeded options and commands from mountfs and
65 mountvirtfs when mtab is a symlink to /proc/self/mounts
67 2013-05-11 Bruce Dubbs <bdubbs@linuxfromscratch.org>
68 * Make sure the root fs is mounted read only in mountfs
71 2013-01-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
72 * Remove local attribue of some variables for Bourne
74 * Specify /bin/echo in commands with -e switch for
75 Bourne shell compatability
77 2012-10-13 Bruce Dubbs <bdubbs@linuxfromscratch.org>
78 * Remove unneeded sleep in killproc
79 * Add option for verbose fsck
80 * Flatten directory structure of tarball
81 * Remove /fastboot or /forcecheck if set
83 2012-09-05 Bruce Dubbs <bdubbs@linuxfromscratch.org>
84 * Add udevadm trigger --action=change line to udev script
85 to support initramfs better
87 2012-08-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
88 * Read /etc/sysconfig/console when needed in rc
90 2012-06-17 Bruce Dubbs <bdubbs@linuxfromscratch.org>
91 * Only mount /run in mountvirtfs if it is not already mounted
93 * Force the /dev/shm->/run/shm symlink
94 * Skip making LVM virtual groups unavailable at shutdown
95 because the / or swap partitions may be still in use.
97 2012-05-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
98 * Copy all entries in /lib/udev/devices to /dev in mounvirtfs
100 2012-05-24 Bruce Dubbs <bdubbs@linuxfromscratch.org>
101 * Remove mkdir from mountvirtfs because fs is read only
103 2012-04-09 Bruce Dubbs <bdubbs@linuxfromscratch.org>
105 * General update of network scripts ifup/ifdown and services
106 ** Add if_true utility function to init_functions
107 ** Change variable INTERFACES to COMPONENT_INTERFACES for bridge interface
108 ** ifdown now only uses the first SERVICE
109 ** Updated ifup.8 to reflect current usage
111 *** Move interface up logic to after service scripts. Eliminates the
112 need for the LINK_CHECK variable.
113 *** Sets the GATEWAY if the variable is set
114 *** Add MTU logic to ifup
116 2012-01-22 Matt Burgess <matthew@linuxfromscratch.org>
118 * lfs/init.d/udev: Change udevd path following upstream changes to its
121 2011-12-23 Matt Burgess <matthew@linuxfromscratch.org>
123 * lfs/init.d/mountvirtfs: Correct permissions on /run/shm
125 2011-11-28 DJ Lucas <dj@linuxfromscratch.org>
127 * lfs/init.d/mountfs: Add '-t nosysfs' to umount command
128 * lfs/init.d/mountvirtfs: remove unneeded spaces in output
129 * lfs/init.d/rc: Correct double interactive prompt and set prompt defaults
130 * lfs/init.d/setclock: Remove screen output from start case (udev)
131 * lfs/init.d/udev{,_retry}: Restore output to screen and log
132 * lfs/sbin/ifup: Change "..." to ": " (not awaiting additional output)
134 2011-11-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
136 * The following are from suggestions by DJ Lucas
137 ** General cleanup of scripts
138 ** Move consolelog function to rc
139 ** Clean up boot logging functions
140 ** Fix interactive prompt between run level S and target run level
142 2011-10-06 Bryan Kadzban <bryan@linuxfromscratch.org>
144 * Add configuration for udev_retry, and remove --type=failed (which does
145 not work with recent udev versions anyway, since no events can possibly
146 trigger it). Start with just the "rtc" subsystem. BLFS should eventually
147 add "sound" to this file, and perhaps others.
150 * Review and update of changes made in previous change.
151 ** Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
152 ** Move network services to /lib/services.
153 ** Move init-functions to /lib/lsb.
154 *** /lib/lsb is a symlink to /lib/services.
155 * Create convenience symlink /etc/init.d->/etc/rc.d/init.d.
156 * Add help and man pages to upup/ifdown.
157 * Append /run/var/bootlog to /var/log/boot.log at the end of
159 * Add capabiltiy to step through the boot scripts at boot time
160 * Optionally allow environment variables in sysconfig directory's
161 console, network, and clock files to be placed in rc.site.
162 * Add an optional FASTBOOT parameter to set /fastboot when rebooting.
164 2011-07-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
165 * Major rewrite of all LFS scripts
166 ** Move ifup/ifdown to /sbin
167 ** Move functions and network services to /lib/boot
168 ** Remove contrib directory
169 ** Move all READ commands to functions and allow the user to specify
170 HEADLESS=1 to skip READ commands
171 ** Add /etc/sysconfig/init_params for adding environmental parameters
172 to all functions used in bootscripts
173 ** Move network configuration to /etc/sysconfig/ifconfig.*. The
174 ifconfig files can have any extension. Use IFACE parameter to
175 specify the target network interface within the configuration file.
176 ** Adds an optional parameter, SKIPTMPCLEAN, to skip the removal of
177 files in /tmp at bootup. Specify the variable in
178 /etc/sysconfig/init_params.
180 2011-05-31 DJ Lucas <dj@linuxfromscratch.org>
181 * lfs/init.d/udev: Add multiple udev triggers for both subsystems and
182 devices per upstream recommendation.
184 2011-04-19 Bruce Dubbs <bdubbs@linuxfromscratch.org>
185 * lfs/init.d/mountvirtfs: Add creation of /run/{var,lock,shm}.
186 * lfs/init.d/udev: Add /dev/shm -> /run/shm symlink.
188 2011-04-18 Bruce Dubbs <bdubbs@linuxfromscratch.org>
189 * lfs/init.d/mountvirtfs: Change name from mountkernfs to mountvirtfs.
190 Add mounting of /run filesystem.
192 2010-05-29 Matt Burgess <matthew@linuxfromscratch.org>
193 * lfs/init.d/udev: Only copy /lib/udev/devices/null, as Udev >= 155 copies
194 devices from /lib/udev/devices to /dev itself. Udevd still needs /dev/null
195 present before starting up though.
197 2010-04-20 Bryan Kadzban <bryan@linuxfromscratch.org>
198 * lfs/init.d/udev, lfs/init.d/udev_retry: Add --action=add, to handle udev
199 version 152 and newer, which send "change" events by default in udevtrigger
202 2010-01-24 Matthew Burgess <matthew@linuxfromscratch.org>
203 * lfs/init.d/udev: Check to see if /dev is already mounted, as it may be if
204 under an initramfs environment. See ticket #2550.
206 2009-08-14 Bryan Kadzban <bryan@linuxfromscratch.org>
207 * lfs/init.d/udev_retry: Use "udevadm trigger --type=failed", which
208 apparently replaced "--retry-failed" some time ago. "--retry-failed" is
211 2009-01-02 Bruce Dubbs <bdubbs@linuxfromscratch.org>
212 * lfs/init.d/functions:
213 * lfs/sysconfig/network-devices/ifup:
214 Updated line widths to accommodate pdf generation in both the above
217 2008-10-27 DJ Lucas <dj@linuxfromscratch.org>
218 * lfs/init.d/cleanfs: Removed '! -newer /proc' from find commands in
219 check for stale files in /var/lock and /var/run.
220 * Makefile: Reversed cleanfs and udev_retry scripts so that cleanfs
221 runs immediately after mountfs.
223 2008-10-26 Dan Nicholson <dnicholson@linuxfromscratch.org>
224 * lfs/init.d/functions: Remove stale pid files when encountered
225 in loadproc/killproc/reloadproc. When the bootscript specifies
226 a pid file to use with the "-p pidfile" argument, *proc
227 functions previously bailed out when the referenced file
228 contains an invalid pid.
230 2008-10-23 DJ Lucas <dj@linuxfromscratch.org>
231 * lfs/init.d/console: Removed BROKEN_COMPOSE as kernel patch has
232 been accepted upstream.
234 2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org>
235 * lfs/init.d/udev, lfs/init.d/udev_retry: Use new udevadm program.
237 2007-08-20 DJ Lucas <dj@linuxfromscratch.org>
238 * lfs/init.d/setclock: Added missing 'stop' argument to usage text
240 2007-08-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
241 * lfs/init.d/checkfs: Don't suppress error messages from the screen.
243 2007-07-18 Dan Nicholson <dnicholson@linuxfromscratch.org>
244 * Makefile, lfs/init.d/consolelog: New bootscript controlling the
245 kernel log level on the console. This is controlled by the LOGLEVEL
246 variable in /etc/sysconfig/console.
247 * lfs/init.d/modules: Remove the log level handling since this is
248 done in the consolelog script now.
249 * lfs/init.d/modules: Clean up the script by removing the file
250 descriptor duplication and instead just redirecting
251 /etc/sysconfig/modules to the input of the while loop.
253 2007-06-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
254 * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock,
255 lfs/init.d/modules, lfs/sysconfig/network-devices/if{up,down}:
256 Don't suppress stderr during bootscripts unless necessary. This
257 would prevent potentially critical messages from reaching the screen.
259 2007-04-24 Dan Nicholson <dnicholson@linuxfromscratch.org>
260 * lfs/init.d/functions: When killproc is executed, it checks that
261 the process is still running, sleeps if it is, then checks again.
262 The sleep is 1 second in between checks. By sleeping for 0.1 seconds
263 in between checks, killproc is much faster as it's wasting much
264 less time sleeping in the normal case that the process has died
267 2007-04-16 Dan Nicholson <dnicholson@linuxfromscratch.org>
268 * lfs/init.d/functions: Redirect stderr when using kill to suppress
270 * lfs/init.d/functions: killproc() was not handling the case where a
271 pidfile is passed to the function. The logic with the signal to be
272 used was causing issues with the handling of pidfiles. This has been
273 fixes, and now killproc() will recheck the process if the signal
274 was TERM (the default) or KILL.
275 * lfs/init.d/functions: statusproc() has been changed to use pidofproc()
276 instead of the deprecated getpids(). Additionally, it now accepts
277 the -p argument to specify a pidfile.
278 * lfs/init.d/functions: Currently, statusproc() always returns
279 successfully, and the only way to know if the process is running
280 is to parse the output. This changes statusproc() to return the
281 status of pidofproc(), which will return unsuccessfully if the
282 requested process is not running.
283 * lfs/init.d/functions: Changed reloadproc() to use pidofproc() and
284 respect the -p argument for pidfiles.
285 * lfs/init.d/sysklogd: Remove a useless argument to reloadproc().
287 2007-03-13 Dan Nicholson <dnicholson@linuxfromscratch.org>
288 * lfs/init.d/functions: If pidofproc() is passed the -p argument
289 it can bomb testing a null variable with an integer expression.
291 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
292 * lfs/init.d/mountfs, lfs/init.d/console, lfs/init.d/setclock,
293 lfs/init.d/mountkernfs: &> redirection is not supported in POSIX.
294 Fortunately, it's equivalent to >word 2>&1 according to bash(1).
296 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
297 * lfs/init.d/console: POSIX says that shells only need to trap on
298 signals. Trapping on ERR isn't always supported. Conditionals have
299 been added to set the $failed variable in spots that seemed
300 appropriate for checking errors.
302 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
303 * lfs/init.d/functions: Use arithmetic expansion and string length,
304 which are both mandated by POSIX, rather than spawning two processes
305 every time boot_mesg() is called.
307 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org>
308 * lfs/init.d/functions: In order to provide an `echo' which provides
309 handles the -e and -n options for all POSIX shells, a feature test
310 is added which stores its result in $ECHO. /bin/echo will be used
311 if the default echo is not capable. Changed the existing functions
312 to reference $ECHO when needed.
313 * lfs/init.d/console: Use $ECHO when -en is needed.
315 2007-02-03 Bryan Kadzban <bryan@linuxfromscratch.org>
316 * ChangeLog: Rename from CHANGELOG, start using GNU style entries.
318 * Makefile: Move setclock before checkfs. Fixes #1948.
320 2006-11-25 Bryan Kadzban <bryan@linuxfromscratch.org>
321 * lfs/init.d/udev_retry: Copy Debian's "copy generated rules" initscript
322 code, to clean up when the rule_generator scripts run before / is
323 writable. (Since the rule_generator code is from Debian, I assume their
324 cleanup code is appropriate.)
326 2006-10-15 Bryan Kadzban <bryan@linuxfromscratch.org>
327 * lfs/init.d/udev_retry: Fix to work with udev >= 099.
330 * Removed console config file and makefile targets.
331 * Removed references to /dev/bug and bugreport in udevand
332 udev_retry bootscripts. (DJ Lucas)
335 * Updated udev script to use the new udevsettle program.
336 * Added udev_retry script for systems that have /usr on a different
337 partition or for some other reason fail the initial replay. (Archaic)
340 * Cleaned up contrib directory. Removed: contrib/init.d,
341 contrib/enhanced, contrib/livecd, contrib/hotplug, and raq2
345 * Merged changes from udev_update branch (DJ Lucas)
346 * Replaced a return with an exit and reversed comment changes in
347 udev bootscript. (Dan Nicholson)
348 * Replaced walk_sysfs function in udev bootscript with new udevtrigger
349 program and move wait_for_uevents function inline. (DJ Lucas)
350 * Removed extra evaluate_retval in udev bootscript. (Ken Moffat)
351 * Wait for uevents to be processed in the udev script. See ticket
352 #1720 for details. (Matthew Burgess)
355 * Removed old references to boot_log function and arguments passed
356 to boot_mesg_flush in echo_* functions. (DJ Lucas)
359 * Moved src argument to ipv4-static-route service script and
360 removed from ipv4-static service script. (DJ Lucas)
363 * Correct sourced path in checkfs script. (Matthew Burgess)
365 n/a - December 31, 2005
366 * Replaced /etc/rc.d with ${rc_base} in checkfs. (Vincent Fretin)
368 n/a - December 24, 2005
369 * Added UTF-8 support to console script. (Alexander E. Patrakov)
371 n/a - September 11, 2005
372 * Removed text wraping and boot logging.
373 * Changed killproc to use warning if not running
374 * Changed 'print_status warning' to use old style output
375 * Fixed display error with LSB init-functions script
376 * Made above killproc/print_status changes in enhanced
378 * Made logger service configurable in enhanced
379 bootscripts. (DJ Lucas)
381 n/a - August 14, 2005
382 * Added -s flag to pidofproc() for backwards
383 compatibility (DJ Lucas)
384 * Fixed erronous values returned by pidofproc() which
385 broke the functionality of statusproc (DJ Lucas)
388 * Changed a == to a = in lfs/init.d/functions, in the boot_mesg
389 function for ash compliancy (Nathan Coulson)
392 * Removed consolelog script from contrib
393 * Updated interactive rc script in contrib and added
394 README.rc-Interactive, added install target to the
398 * Tagged as 3.2.2 (Nathan Coulson)
401 * Added minimal target for cross-lfs book (Jim Gifford)
402 * Fixed raq2 patch (Jim Gifford)
405 * Tagged as 3.2.1 (Nathan Coulson)
408 * removed touch from hotplug bootscript (Matthew Burgess)
409 * moved commands around in localnet bootscript (Andrew Benton)
411 3.2.0 - March 30, 2005
412 * Changed from syslog-ng to sysklogd (Archaic)
413 * Temporairly changed loadproc to return 0 if the program is
414 already running (Nathan Coulson)
415 * Fixed (by reverting) ifup/ifdown/network (Nathan Coulson),
416 Reported by Jim Gifford
417 * Fixed network up/down along with adding support of ONHOTPLUG
421 * Updated RaQ2 patch (Jim Gifford)
422 * Added net.agent for Hotplug of Network adapters in contrib
426 * Reverted the change from loadproc to start_daemon,
427 Moved compatibility code into one single function.
429 * Readded the ONHOTPLUG option for ifup/ifdown (Nathan Coulson)
430 * Fixed killproc's output
433 * Added CHECK_LINK variable in ifconfig.*/*, so if the
434 interface does not exist, it will not fail.
437 n/a - February 19, 2005
438 * Added evaluate_retval to the end of loadproc and killproc.
439 lsb does not say that killproc should print [ OK ],
440 but required for compatibility. (Nathan Coulson)
442 n/a - February 9, 2005
443 * Accidentally mounted /dev with 775 instead of 755, fixed
444 (Reported by Alexander E. Patrakov)
446 n/a - February 9, 2005
447 * Bugfix for /dev, now mounted with 755 permission
449 n/a - February 8, 2005
450 * changed pidof, so it doesn't check the process id
451 of running bootscripts, and to process shell scripts
454 n/a - February 6, 2005
455 * Updated main functions file with lsb functions file
456 Should now be LSB compliant (Nathan Coulson)
458 n/a - January 10, 2005
459 * Moved ONBOOT check back to network (Nathan Coulson)
460 * Removed ONHOTPLUG check (Nathan Coulson)
462 n/a - January 6, 2005
463 * fixed mountkernfs output (Nathan Coulson)
464 * reverted mountfs fakemounting (Nathan Coulson)
466 n/a - January 5, 2005
467 * Attempted to simplify network bootup files (Nathan Coulson)
468 * Modified mountkernfs to use mountpoint (Nathan Coulson)
469 * Assuming sysfs is always mounted (Nathan Coulson)
470 * Moved fakemount to below mounting (Nathan Coulson)
471 * Removed -t noramfs from umount, as we now use tmpfs (Nathan Coulson)
472 * moved sysctl from mountkernfs to sysctl (Nathan Coulson)
473 * Added -q to sysctl (Nathan Coulson)
475 n/a - January 2, 2005
476 * Fixed statusproc output. (DJ Lucas)
478 3.1.0 - December 31, 2004
482 n/a - December 30, 2004
483 * Fixed name of LSB Functions file
484 * Changed boot_mesg to act like echo instead of echo -n, boot_mesg now
485 takes the -n argument if you do not wish to goto the next line
487 3.0.1 - December 25, 2004
490 n/a - December 20, 2004
494 n/a - December 16, 2004
495 * Fixed a text typo in udev, tmpfs instead of ramfs (Steve Crosby)
497 n/a - December 14, 2004
498 * Fixed a warning with find in cleanfs
501 3.0 - December 8, 2004
503 n/a - December 5, 2004
504 * Moved bootlog to use local2 service to avoide conflict with
507 3.0-rc1 - December 1, 2004
508 * rc-Interactive added (DJ Lucas)
509 * rc-Interactive moved to contrib (Nathan Coulson)
511 n/a - November 27, 2004
512 * Moved bootlog to use local1 to avoid conflict with ppd (DJ Lucas)
514 n/a - November 25, 2004
515 * Added consolelog to contrib/sysconfig (DJ Lucas)
516 * Rewrite of line wraping in boot_mesg and various fixes
517 related to boot_mesg changes (DJ Lucas, Alexander Patrakov)
518 * syslog-ng is now installed by default (Jeremy Utley)
519 * hotplug is now installed by default (Jeremy Utley)
520 * udev now uses /sbin/hotplug as the default hotplug handler
522 * udev now mounts a tmpfs instead of a ramfs onto /dev,
523 as suggested by Greg K-H (Nathan Coulson)
524 * Created contrib/lsb, and added a LSB compliant functions file
525 (Nathan Coulson, and Alexander Patrakov)
526 * Modified find [requires find 4.2.3+] (Matthew Burgess)
528 n/a - November 20, 2004
529 * Modifed modules script to return to previous kernel message
532 n/a - November 02, 2004
533 * Added sysctl -p to mountkernfs (Matthew Burgess, DJ Lucas)
535 n/a - October 07, 2004
536 * statusproc modified not to send data to bootlog (Nathan Coulson)
537 * Fixed halt commands in checkfs and udev (James Robertson)
539 n/a - October 04, 2004
540 * Fixes to commit on 2004/09/30 (James Robertson)
541 * Revert a few changes until later (Nathan Coulson)
542 * Added a warning about switching from a 8bit font
543 to a 9bit font (Alexander Patrakov)
545 n/a - September 30, 2004
546 * Finished off boot_mesg() (James Robertson)
547 * Standardized all scripts to same variable format and other
548 internal sh/bash function calls (James Robertson)
549 * Fully implemented boot_mesg across all scripts in sysconfig
550 and init.d (James Robertson)
552 n/a - September 26, 2004
553 * Added BOOTMESG_PREFIX variable, so users can optionally set a
554 prefix for boot messages (James Robertson)
555 * Fixed localnet status, to use ip instead of ifconfig (Jim Gifford)
556 * Added consolelog to contrib (DJ Lucas)
557 * loadproc and killproc can have the -nomsg parameter to avoid
558 calling evaluate_retval or print_status (Jim Gifford)
559 * boot_mesg no longer explicitly adds a \n onto end of lines
560 * Added a function called boot_mesg_flush, which can
561 dump the BOOTMESG to the bootlog. This helps avoid making
562 everything have to end in OK/WARN/FAIL (Nathan Coulson)
564 n/a - September 24, 2004
565 * Removed /dev/udev.tdb test
567 n/a - September 23, 2004
568 * Fixed boot_log so it output's $@'s contents, not @$
569 * Added support for colors in boot_mesg (James Robertson)
570 * Modified udev's error checking
571 * Modified hotplug's error checking
572 * Converted checkfs's error handling to use boot_mesg with
574 * Added $INFO color to functions (James Robertson)
576 n/a - September 22, 2004
577 * Removed the dependency on wl by replacing it with grep (Bryan Kadzban)
578 * Fixed getpids, to remove unused pids obtained from $PIDFILE
579 * Removed ${NORMAL} from echo "$BOOTMESG" in functions, and removed
580 space added to each additional sentence tacked onto BOOTMESG
581 * boot_mesg now handles \n's properly, and does not dimish the size of
582 the next line (James Robertson)
583 * boot_log has been added. The echo_ functions commit the log,
584 and then clear the BOOTMSG variable
585 * All scriptes have been converted to use boot_mesg
587 n/a - September 21, 2004
588 * boot_mesg has been enhanced. Subsequent calls will overwrite
589 previous text, and it will wrap text basedupon the variable ${WCOL}.
591 * Fixed mtu optional service typo (Kevin P Fleming)
592 * Added SOURCE variable to ipv4-static-route (Kevin P Fleming)
594 n/a - September 16, 2004
595 * nework interfaces are now brought down in reverse order
597 n/a - September 15, 2004
598 * Added blue bracket, from dj's 3.0-pre1 bootscript package
599 [echo_failure, echo_warning, and echo_ok]
600 * Added a new function called boot_mesg, meant to replace the echo
602 This will give us the posibility of doing logging at a later date
603 * Do not set COLUMNS if COLUMNS is already set
604 * Modified getpids, loadproc, killproc, reloadproc, and statusproc as
607 2.2.3 - September 04, 2004
610 n/a - September 04, 2004
611 * Added new script to contrib for syslog-ng, which is now part of
612 LFS-Unstable, and a new Makefile target install-syslog-ng which
613 removes the sysklogd links, and replaces them with syslog-ng (JU)
615 2.2.2 - August 11, 2004
619 * Added missing error redirect (/dev/null) in getpids. (DJ)
622 * Added MODE, DIRMODE, and CONFMODE variables to the makefile
623 to allow permissions to be set at install. (DJ)
627 * Moved PIDFILE check to getpids and removed arguments from
628 killproc and reloadproc. Signals are now set at beginning of
629 funtcions script with KILLDELAY. (DJ)
630 * Added a optional service script which can set the MTU for a given
635 * Committed DJ Lucas's patch for the killproc function. It no
636 longer requires arguments if PIDFILE is set
637 * added --backup to all sysconfig configuration files, so they are not
638 replaced on a make install
642 * Added the PEER variable to the ifconfig.*/* file, done by
645 2.2.1 - July 12, 2004
651 * Hotplug was moved from rcsysinit.d to rc{1,2,3,4,5} to help bring
652 up/down network interfaces started by hotplug. This has been revoked
654 * Networking interfaces are now brought down in reverse order
655 * Moved the ONBOOT check to within ifup/ifdown, so we can bring up/down
656 the interfaces at boottime/shutdown properly, done by Kevin P. Fleming
657 * Use PREFIX instead of NETMASK for adding addresses in ipv4-static,
658 done by Kevin P. Fleming
659 * Fix reversal of services inside ifconfig.* directories in ifdown,
660 done by Kevin P. Fleming
661 * Add ipv4-static-route service, supplied by Kevin P. Fleming
663 2.2.0 - July 12, 2004
669 * Minor script output changes
670 * Repaired networking scripts broken in previous commits
674 * We now use the ip program [from iproute2] instead of ipconfig
675 [net-tools] to bring up/down ethernet interfaces, and local
676 connections, submitted by Jim Gifford
677 * Removed gateway backward compatibility
678 * Removed ifup-eth0 ifdown-eth0 compatibility
679 * Removed the "assume SERVICE=static if SERVICE is unset" compatibility
680 * Pass the IFCONFIG environmental variable to services, so they can
681 locate the file with the parameters they must read
682 * Rename static to ipv4-static
683 * Stage1 for network configuration via directories, ifup and ifdown
684 modified, and the static service modified
685 * Stage2 for network configuration via directories complete, network was
686 modified to check within subdirectories for ONBOOT=yes. Final Stage
690 * Changed iso01 to lat1 everywhere in /etc/sysconfig/console. This
691 fixes the problem with line-drawing characters.
695 * Halted the computer, if unable to mount /dev as a ramfs
699 * Moved the hotplug bootscript back to contrib, it will not be used in
700 the testing branch of the lfs book at this time
704 * Modified ifup and ifdown to be hotplug aware
708 * Change the check for ONBOOT into a source within a subshell
712 * Moved hotplug start to runlevels 3-5 from sysinit
716 * Pass -depth in cleanfs
720 * Made the grep for ONBOOT in the network script more exact
722 2.1.2 - June 27, 2004
724 * Install the automatic module loading script by default
729 * Fixed font for UK in /etc/sysconfig/console
733 * Fixed a typo in the hotplug installation procedure
737 * Re-ordered the "mount" and "echo" commands in the udev script, to
738 prevent a possible race
739 * Converted the udev script to use udevsend/udevd
740 * Moved removal of /fastboot and /forcefsck to just after the root fs
741 becomes writable, and dropped the removal of /etc/nologin
742 * Cleaned and tweaked both the output and actions of cleanfs
743 * Removed the disabling of hotplug from sendsignals
744 * Removed anything that might call "rmmod" in hotplug, since rmmod is
745 notoriously troublesome in the 2.6.x kernels, and call it with the
746 stop argument from runlevels 0 and 6
747 * Fixed previous modifications to the udev and cleanfs scripts
751 * Rolled back to the /dev/.udev.tdb check from 2.1.1, since the new
752 one doesn't work as well, and the bug that caused it to change is
757 * Updated sysconfig/console
758 * Fixed disabling hotplug in sendsignals
759 * hotplug is now installed by default
763 * Reset /proc/sys/kernel/hotplug to /bin/true when running the "stop"
765 * Cleaned the output of the mountkernfs script
766 * Don't output "Creating files and directories" when it's a lie
770 * Changed the location the optional module script is installed to
771 /etc/rc.d/rcsysinit.d/S05modules.
775 * Added a echo to the > /proc/sys/kernel/hotplug line, as > did not
780 * Added '> /proc/sys/kernel/hotplug' to sendsignals, to disable hotplug
781 events, which may start up new daemons
782 * Added elementry bootup logging support. If it can write to
783 /var/log/boot.log, it will
784 * Removed logging support, it kept / from being remounted ro
788 * Reorganize what goes on in the udev script
789 * Reorganize what goes on in the hotplug script
790 * Moved setting /sbin/hotplug as the default hotplug manager into the
795 * Removed usbfs from mountkernfs, and mountfs
796 * Edited the udev script, so it'll always set /proc/sys/kernel/hotplug
800 * Added more example keymaps and font settings to /etc/sysconfig/console
801 * Install the /etc/sysconfig/console file by default
805 * Changed the symlink for the optional modules script
806 * Removed depmod from the optional modules script
810 * Removed the random script. There is not a strong enough case for
811 adding it to the lfs-bootscripts.
815 * Added the random bootscript from blfs-bootscripts
819 * Fixed installation of modules configuration
824 * Added sysklogd configuration file
825 * Added example /etc/sysconfig/console file
826 * Do not attempt to populate /dev if that directory has already been
827 set up earlier in bootup (such as on initramfs/initrd)
828 * Prevent excessive kernel output once klogd starts
829 * Added hotplug script
833 * Namespace rework (enumeration of scripts is now cleaner)
834 * Removed directories: blfs, contrib/new-boot-0.2, contrib/rlv
838 * Repaired the console script
839 * Added a check to cleanfs [createfiles], to make sure that we have
840 a valid devicetype, if we have type=dev
844 * Added usbfs to mountkernfs and mountfs
848 * Don't use loadproc in localnet, it's not meant for that
849 * Quote tests of $PIDFILE, so that things behave when it's empty
850 * Removed unused kill -0 from killproc
854 * Update to the console script, prevent install of the console script
855 * Chgrp /var/run/utmp to group utmp if it exists.
856 * Moved udev from contrib to lfs
857 * Moved GATEWAY setup from /etc/rc.d/init.d/network to
858 /etc/sysconfig/network-devices/services/static
859 * Use the contents of $PIDFILE, if it is set in the script
864 * Moved the loadkeys script to console, and added setfont. Contributed
865 by Alexander E. Patrakov
867 2.0.5 - April 29, 2004
869 * Added the heimdal init script.
872 2.0.4 - April 27, 2004
878 * Added a example script for /etc/sysconfig/createfiles
879 * Added a check for /sys before mounting sysfs
880 * Added -t noramfs to umount on /etc/rc.d/init.d/mountfs.
881 This will prevent /dev from being unmounted, if /proc/mounts
882 is symlinked to /etc/mtab
886 * Small fix to a if statement in netfs
890 * Added the lisa bootscript, lisa is part of the KDE Network package
891 * Add proper error checking to the mountfs script when writing out mtab
892 * Add more comments to the udev script, and conditionalize various
893 things that should've been done this way in the first place
894 * Include a template module auto-loading configuration file instead of
895 having syntax comments in the script itself
899 * Added a automatic modules loading script to the contrib directory
901 * Edited mountkernfs, so that if you can mount sysfs on /sys, it will
902 be mounted at boottime. Should not affect 2.4 systems
903 * Since all entries are added to /etc/mtab, we should not require
904 the NO_FS variable. It has been removed from mountfs
905 * Added the udev script into the contrib directory, submitted by Zack
907 2.0.3 - April 8, 2004
909 * Updated cleanfs, so it can create devices. Supplied by Zack
914 * Changed "Press Enter" on unknown error to white
915 * Moved S10swap to S20swap. When udev is added, it has to be
916 ran before swap is setup
920 * Fixed the rc5.d symlink for ntp so it creates S26ntp instead
922 * Moved S20mountkernfs to S00mountkernfs in rcsysinit.d. Will help in
923 the addition of udev in the future.
927 * Changed gdm path from hardcoded to program name. There are 2 spots
928 gnome can be installed
932 * Updated fam daemon script. It now uses the famd daemon instead of fam
936 * Removed mount command out of nfs. the netfs script already handles
939 2.0.2 - March 24, 2004
941 * Edited cleanfs to solve a problem. [if /tmp does not exist, it
942 could run the find command on the root filesystem]
945 2.0.1 - March 24, 2004
947 * Found typo in BLFS MySQL Script.
950 2.0.0 - March 23, 2004
952 * Tagged as 2.0.0, no changes from 2.0.0-pre2
954 2.0.0-pre2 - March 23, 2004
956 * Cleaned the /tmp directory on bootup. find command supplied by Zack
957 * Added a script which can automatically create files and directories
958 on startup. [Handles files/directories, permissions, and user/group].
960 * Added blfs/init.d/fam script
961 * Tagged as 2.0.0-pre2
965 * Added create-service-dir target and removed from create-dirs
966 * Changed service script install targets to use
968 * Added check for dhcpcd service script for stale pid file
970 * Added ifconfig to ipx service script for hosting device not up
974 * Added support for ETCDIR, and DESTDIR in the Makefile,
975 compliments of Tushar
976 * Renamed mountproc to mountkernfs
977 * Updated the README file
978 * Coloured the print_error_message in functions red
979 * added stop to the setclock script
980 * changed echo > to > in cleanfs, suggested by winkie
981 * BLFS Scripts Added, collected by Zack
982 * Edited killproc, so it checks for running pids, rather then
983 the completion of the above kill command. Suggested by Zack
984 * Added network services found in blfs, removed adsl. Submitted by
987 1.99.4 - March 17, 2004
989 * Fixed one last halt line in checkfs script
990 * Moved the directory structure around
991 * Tagged as development release 1.99.4
993 n/a - February 28, 2004
995 * Added stty sane to the top of rc.d/init.d/rc. Hopefully, this will
997 * Also changed all instances of <ctrl-j> back to enter
999 1.99.3 - February 23, 2004
1001 * Tagged as development release 1.99.3
1003 n/a - February 19, 2004
1005 * Fixed checkfs script, so it will no longer continue to boot after a
1006 failure in the init.d/checkfs script. Tested with the help of Andre
1007 Müller. Fix suggested by Zack
1009 n/a - February 7, 2004
1011 * Added -s onto grep on network stop
1012 * Replaced a few more enter's with ctrl-j
1014 1.99.2 - February 6, 2004
1016 * Added -s onto grep in network start
1017 * Tagged as development release 1.99.2
1019 n/a - February 4, 2004
1021 * Fixed $WARNING $NORMAL and $ERROR lines, broken by changes in
1023 * Changed above fixes to work with ash
1024 * Fixed checkfs symlink in Makefile
1025 * functions is no longer installed as executable
1026 * Added a check to checkfs, for errors above 16. These are caused by
1027 being unable to run fsck, either due to user input, or a unfunctional
1030 1.99.1 - February 2, 2004
1032 * Tagged as development release 1.99.1
1034 n/a - February 2, 2004:
1036 * Added -d to umount in mountfs.
1037 * Fixed network shutdown script
1038 * Fixed Makefile rc.6 to reboot
1039 * Added -s flag to grep command in rc.d/init.d/network -
1040 suppresses an error if no ifconfig.* files exist
1042 n/a - January 30, 2004:
1044 * Reorganized the network system to accept multiple services.
1046 * Modified some scripts to follow template
1047 * Reorganized functions, based upon Ash Compliancy Patch
1048 * Added a sleep 5 to failure for evaulate_retval, and changed
1049 evaulate_retval to return true instead of false. Instead, a
1050 exit 1 will indicate the script terminated abnormally, causing
1051 your system to wait until you hit ctrl-J
1052 * Switched "Press enter to continue" to "Press <ctrl-j> to continue"
1053 * replaced 3 with $KILLDELAY in sendsignals
1054 * mountfs does not mount network filesystems [identified by _netdev
1056 * removed unneded touch out of cleanfs
1058 n/a - January 30, 2004:
1060 * New maintainers for the lfs-bootscripts package are:
1061 Jeremy Utley (jeremy@linuxfromscratch.org)
1062 Nathan Coulson (nathan@linuxfromscratch.org)
1064 1.11 - February 3rd, 2003:
1066 * /etc/mtab is now a real file and is handled correctly so there are
1067 no errors even when the machine has crashed.
1069 1.10 - September 12th, 2002:
1071 * Fixed up checkfs to work with non-ext2 filesystems too (such as
1074 1.9 - April 5th, 2002:
1076 * reloadproc function had a missing '=' in the "failure 1" command (it
1077 should be failure=1)
1079 * When script exists with unexpected value, you have to hit "Enter" to
1080 continue, not just a random key as printed on the screen.
1082 * Moved K10sysklogd, K20sendsignals, K30mount and K40swap to
1083 K40sysklogd, K50sendsignals, K60mount, K70swap
1085 * Changed the #!/bin/sh lines to #!/bin/bash - /bin/sh may not be
1086 linked to bash but to some other shell of your choice. These scripts
1087 are written to work with bash, so you can't just run them when
1088 /bin/sh -> csh or ash or whatever else tickles your fancy. This
1089 change should fix that.
1091 1.8 - March 14th, 2002:
1093 * Fixed the getpids function call so PPID's would be taken into account
1096 * Added the 'contrib' directory with other people's bootscript
1099 1.7 - March 10th, 2002:
1101 * Used code from Matthias Benkmann's simpleinit-msb @
1102 http://winterdrache.de/linux/newboot/index.html mainly for improved
1103 killproc function handling
1105 * When a requested process isn't running, or is already running, a
1106 warning "Not running" or "Already running" will be displayed. This
1107 was out of allignment due to a missing $CURS_UP
1109 * Removed "||exit" from ifup and ifdown scripts. They are useless.
1111 * Changed the loadkeys script to run "loadkeys -d" and removed the need
1112 for the /etc/sysconfig/keyboard file. The kbd patch fixes the
1113 "loadkeys -d" behaviour.
1115 1.6 - February 26th, 2002:
1117 * replaced -o %PPID with -o $PPID throughout the functions script. This
1118 construct does what it's supposed to do (don't take PPID into account
1119 because this would fail if a running daemon and the bootscript have
1122 * added 'restart' to the swap script
1124 * instead of using 'echo -n' to suppress newlines so the [ OK ] and
1125 related messages align properly, substitute this with a single echo
1126 command that simply goes one line up before outputting anything. This
1127 also has the benefit that when programs have their own output (like
1128 swapon, fsck and loadkeys), there won't be an unwanted blank line
1129 between the program's output and the [ OK ] et all. messages.
1131 1.5 - February 2nd, 2002:
1133 * added 'exit 1' to the statusproc function when there aren't enough
1134 parameters passed to it (such as the name of process to check for)
1136 1.4 - February 2nd, 2002:
1138 * when /fastboot is detected and the message about it is printed,
1139 don't run 'exit 1' else the rc script will cause a [FAILED] to
1140 be printed which is undesired in this case.
1142 1.3 - January 30th, 2002:
1143 * network script: changed default route detection by using the same
1144 method as used when starting the script: check if the GATEWAY
1147 * removed the emptying of /etc/mtab since it's a symlink to
1150 * added the mountproc script which mounts the proc system. This is done
1151 because we need proc mounted even before the mountfs script is ran
1152 (now that /etc/mtab is a symlink to /proc/mounts)
1154 * removed all absolute paths from command calls
1156 * added umask 022 and PATH="/bin:/usr/bin:/sbin:/usr/sbin" to the
1157 functions script. Every file now sources this so that umask and PATH
1160 1.2 - January 26th, 2002:
1161 * network script: detect if a default route is set before removing it