From 68aa6c7a8f09fdac0757f17c2314ef2ff14bb5f3 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 21 Feb 2008 20:45:14 +0000 Subject: [PATCH] First framework. --- .../200802-bootsequence.html | 186 ++++++++++++++++++ .../lsb-header-progress.png | Bin 0 -> 4064 bytes 2 files changed, 186 insertions(+) create mode 100644 mypapers/200802-bootsequence/200802-bootsequence.html create mode 100644 mypapers/200802-bootsequence/lsb-header-progress.png diff --git a/mypapers/200802-bootsequence/200802-bootsequence.html b/mypapers/200802-bootsequence/200802-bootsequence.html new file mode 100644 index 0000000000..8f5741091e --- /dev/null +++ b/mypapers/200802-bootsequence/200802-bootsequence.html @@ -0,0 +1,186 @@ + + + + + + + + + + +forrige foredrag + +

Reordering the Debian boot sequence for correctness and speed

+ +

Autodetecting and configuring hardware during installation and at + runtime

+ +
Petter Reinholdtsen +
pere@hungry.com +
FOSDEM 2008, 2008-02-26
+ +

Summary

+ + + +

SysV init in Debian - Booting

+ +

Note, this is the stuff going on after the initrd part is done. +The very early boot is done before hard drive partitions is mounted.

+ +
    + +
  1. /sbin/init start, which look at /etc/inittab and decides what to + do.
  2. + +
  3. The scripts in /etc/rcS.d/ is executed in sequence by + /etc/init.d/rc, with start as the argument.
  4. + +
  5. Depending on the runlevel, the scripts for the given runlevel is + executed (normally the ones in /etc/rc2.d/) are executed in + sequence, first the stop scripts with stop as their + argument, next the start scripts with start as their + argument. The rc*.d/ directories contain symlinks the files in to + /etc/init.d/.
  6. + +
  7. The ordering is important.
  8. + +
  9. The single-user runlevel will present a login prompt after rcS.d/ + was executed. Runlevel 1 is not the single user runlevel, but it + behaves as a better single user.
  10. + +
+ +

SysV init in Debian - Switching runlevels

+ + + +

Note that switching to runlevel S will not run the scripts in +/etc/rcS.d/. To get a similar effect after boot, switch to runlevel +1. It will (should) kill all services and prepare the machine for +maintenance.

+ +

SysV init in Debian - Shutting down

+ +

This is equivalent to switching to runlevel 0 (halt) or 6 (reboot), + with a minor exception. All scripts (both start and stop) are + executed with the stop argument. + +

about ordering

+ +

Script ordering is vital for this to work. And how are the scripts +ordered? + + update-rc.d numbers. + + + + +

LSB headers for insserv

+ + + +

What to list as dependencies I

+ +

If your package used the default update-rc.d settings before, this +is the header for you:

+
+### BEGIN INIT INFO
+# Provides:          scriptname
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
+
+ +

$remote_fs is needed by all scripts using files in /usr/. $syslog +is needed only by scripts starting services logging to syslog.

+ + +

Status of dependency based boot

+ +LSB header progress graph + +

Release goal for Debian Lenny. + +

Packages with LSB header: 654 of 866 (76%) +
Unsolved BTS reports: XXX +
Packages without BTS reports: ~150 + +

Need better documentation + +

Need debian policy updates + +

+ + - status in debian + - need better doc + - fix insserv bugs + + + +

Thank you very much

+ +

Questions?

+ +

http://www.hungry.com/~pere/mypapers/200802-bootsequence/200802-bootsequence.html

+ + + diff --git a/mypapers/200802-bootsequence/lsb-header-progress.png b/mypapers/200802-bootsequence/lsb-header-progress.png new file mode 100644 index 0000000000000000000000000000000000000000..9e8b84653a61512e14fb0483f5386bec404b84df GIT binary patch literal 4064 zcmd^CX*iT?A0JDNEMt!_$P!tz9Lo&Z1|?gD$W}s#5M#-jCbCaXp=1{mIWuQMma-o- zR7_|RV_(Kz!;t-bIPbaM?Zf-^y{`Ae{VezM-1mR~{qBE~wWTQss}L&)1md`O0bv6I zF+>4FhJ_KBk^T@+4gzsvFCq+V!*iD@0p7xNv6de_4P^v#A2^~lD{CKV;`DYN-O8uv zJ7mrsb;FDMxWxVQzg~%&?AvWyPr7dCyNPJE^vEi1R}m(B9!fIef~GB9?G~?zKG!$% z#z%Fyd^0jo=2ht@M;GO$#*yZ`?CpIZ{qFQ2Wzf9^Llh{n`&8bu zXQv8!v-hu%=|x4S3wkxRv|cVY+~5N7Rh9(*nCu`Di5VFg>lehis0#~bQalt2B~D*o zg#{#Mk|l4C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