1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries tagged bootsystem
</title>
5 <description>Entries tagged bootsystem
</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>How is booting into runlevel
1 different from single user boots?
</title>
11 <link>http://people.skolelinux.org/pere/blog/How_is_booting_into_runlevel_1_different_from_single_user_boots_.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_is_booting_into_runlevel_1_different_from_single_user_boots_.html
</guid>
13 <pubDate>Thu,
4 Aug
2011 12:
40:
00 +
0200</pubDate>
14 <description><p
>Wouter Verhelst have some
15 <a href=
"http://grep.be/blog/en/retorts/pere_kubuntu_boot
">interesting
16 comments and opinions
</a
> on my blog post on
17 <a href=
"http://people.skolelinux.org/pere/blog/What_should_start_from__etc_rcS_d__in_Debian____almost_nothing.html
">the
18 need to clean up /etc/rcS.d/ in Debian
</a
> and my blog post about
19 <a href=
"http://people.skolelinux.org/pere/blog/What_is_missing_in_the_Debian_desktop__or_why_my_parents_use_Kubuntu.html
">the
20 default KDE desktop in Debian
</a
>. I only have time to address one
21 small piece of his comment now, and though it best to address the
22 misunderstanding he bring forward:
</p
>
24 <p
><blockquote
>
25 Currently, a system admin has four options: [...] boot to a
26 single-user system (by adding
'single
' to the kernel command line;
27 this runs rcS and rc1 scripts)
28 </blockquote
></p
>
30 <p
>This make me believe Wouter believe booting into single user mode
31 and booting into runlevel
1 is the same. I am not surprised he
32 believe this, because it would make sense and is a quite sensible
33 thing to believe. But because the boot in Debian is slightly broken,
34 runlevel
1 do not work properly and it isn
't the same as single user
35 mode. I
'll try to explain what is actually happing, but it is a bit
36 hard to explain.
</p
>
38 <p
>Single user mode is defined like this in /etc/inittab:
39 "<tt
>~~:S:wait:/sbin/sulogin
</tt
>". This means the only thing that is
40 executed in single user mode is sulogin. Single user mode is a boot
41 state
"between
" the runlevels, and when booting into single user mode,
42 only the scripts in /etc/rcS.d/ are executed before the init process
43 enters the single user state. When switching to runlevel
1, the state
44 is in fact not ending in runlevel
1, but it passes through runlevel
1
45 and end up in the single user mode (see /etc/rc1.d/S03single, which
46 runs
"init -t1 S
" to switch to single user mode at the end of runlevel
47 1. It is confusing that the
'S
' (single user) init mode is not the
48 mode enabled by /etc/rcS.d/ (which is more like the initial boot
51 <p
>This summary might make it clearer. When booting for the first
52 time into single user mode, the following commands are executed:
53 "<tt
>/etc/init.d/rc S; /sbin/sulogin
</tt
>". When booting into
54 runlevel
1, the following commands are executed:
"<tt
>/etc/init.d/rc
55 S; /etc/init.d/rc
1; /sbin/sulogin
</tt
>". A problem show up when
56 trying to continue after visiting single user mode. Not all services
57 are started again as they should, causing the machine to end up in an
58 unpredicatble state. This is why Debian admins recommend rebooting
59 after visiting single user mode.
</p
>
61 <p
>A similar problem with runlevel
1 is caused by the amount of
62 scripts executed from /etc/rcS.d/. When switching from say runlevel
2
63 to runlevel
1, the services started from /etc/rcS.d/ are not properly
64 stopped when passing through the scripts in /etc/rc1.d/, and not
65 started again when switching away from runlevel
1 to the runlevels
66 2-
5. I believe the problem is best fixed by moving all the scripts
67 out of /etc/rcS.d/ that are not
<strong
>required
</strong
> to get a
68 functioning single user mode during boot.
</p
>
70 <p
>I have spent several years investigating the Debian boot system,
71 and discovered this problem a few years ago. I suspect it originates
72 from when sysvinit was introduced into Debian, a long time ago.
</p
>
77 <title>What should start from /etc/rcS.d/ in Debian? - almost nothing
</title>
78 <link>http://people.skolelinux.org/pere/blog/What_should_start_from__etc_rcS_d__in_Debian____almost_nothing.html
</link>
79 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/What_should_start_from__etc_rcS_d__in_Debian____almost_nothing.html
</guid>
80 <pubDate>Sat,
30 Jul
2011 14:
00:
00 +
0200</pubDate>
81 <description><p
>In the Debian boot system, several packages include scripts that
82 are started from /etc/rcS.d/. In fact, there is a bite more of them
83 than make sense, and this causes a few problems. What kind of
84 problems, you might ask. There are at least two problems. The first
85 is that it is not possible to recover a machine after switching to
86 runlevel
1. One need to actually reboot to get the machine back to
87 the expected state. The other is that single user boot will sometimes
88 run into problems because some of the subsystems are activated before
89 the root login is presented, causing problems when trying to recover a
90 machine from a problem in that subsystem. A minor additional point is
91 that moving more scripts out of rcS.d/ and into the other rc#.d/
92 directories will increase the amount of scripts that can run in
93 parallel during boot, and thus decrease the boot time.
</p
>
95 <p
>So, which scripts should start from rcS.d/. In short, only the
96 scripts that _have_ to execute before the root login prompt is
97 presented during a single user boot should go there. Everything else
98 should go into the numeric runlevels. This means things like
99 lm-sensors, fuse and x11-common should not run from rcS.d, but from
100 the numeric runlevels. Today in Debian, there are around
115 init.d
101 scripts that are started from rcS.d/, and most of them should be moved
102 out. Do your package have one of them? Please help us make single
103 user and runlevel
1 better by moving it.
</p
>
105 <p
>Scripts setting up the screen, keyboard, system partitions
106 etc. should still be started from rcS.d/, but there is for example no
107 need to have the network enabled before the single user login prompt
108 is presented.
</p
>
110 <p
>As always, things are not so easy to fix as they sound. To keep
111 Debian systems working while scripts migrate and during upgrades, the
112 scripts need to be moved from rcS.d/ to rc2.d/ in reverse dependency
113 order, ie the scripts that nothing in rcS.d/ depend on can be moved,
114 and the next ones can only be moved when their dependencies have been
115 moved first. This migration must be done sequentially while we ensure
116 that the package system upgrade packages in the right order to keep
117 the system state correct. This will require some coordination when it
118 comes to network related packages, but most of the packages with
119 scripts that should migrate do not have anything in rcS.d/ depending
120 on them. Some packages have already been updated, like the sudo
121 package, while others are still left to do. I wish I had time to work
122 on this myself, but real live constrains make it unlikely that I will
123 find time to push this forward.
</p
>
128 <title>Automatic upgrade testing from Lenny to Squeeze
</title>
129 <link>http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</link>
130 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</guid>
131 <pubDate>Fri,
11 Jun
2010 22:
50:
00 +
0200</pubDate>
132 <description><p
>The last few days I have done some upgrade testing in Debian, to
133 see if the upgrade from Lenny to Squeeze will go smoothly. A few bugs
134 have been discovered and reported in the process
135 (
<a href=
"http://bugs.debian.org/
585410">#
585410</a
> in nagios3-cgi,
136 <a href=
"http://bugs.debian.org/
584879">#
584879</a
> already fixed in
137 enscript and
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> in
138 kdebase-workspace-data), and to get a more regular testing going on, I
139 am working on a script to automate the test.
</p
>
141 <p
>The idea is to create a Lenny chroot and use tasksel to install a
142 Gnome or KDE desktop installation inside the chroot before upgrading
143 it. To ensure no services are started in the chroot, a policy-rc.d
144 script is inserted. To make sure tasksel believe it is to install a
145 desktop on a laptop, the tasksel tests are replaced in the chroot
146 (only acceptable because this is a throw-away chroot).
</p
>
148 <p
>A naive upgrade from Lenny to Squeeze using aptitude dist-upgrade
149 currently always fail because udev refuses to upgrade with the kernel
150 in Lenny, so to avoid that problem the file /etc/udev/kernel-upgrade
151 is created. The bug report
152 <a href=
"http://bugs.debian.org/
566000">#
566000</a
> make me suspect
153 this problem do not trigger in a chroot, but I touch the file anyway
154 to make sure the upgrade go well. Testing on virtual and real
155 hardware have failed me because of udev so far, and creating this file
156 do the trick in such settings anyway. This is a
157 <a href=
"http://www.linuxquestions.org/questions/debian-
26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-
804130/
">known
158 issue
</a
> and the current udev behaviour is intended by the udev
159 maintainer because he lack the resources to rewrite udev to keep
160 working with old kernels or something like that. I really wish the
161 udev upstream would keep udev backwards compatible, to avoid such
162 upgrade problem, but given that they fail to do so, I guess
163 documenting the way out of this mess is the best option we got for
164 Debian Squeeze.
</p
>
166 <p
>Anyway, back to the task at hand, testing upgrades. This test
167 script, which I call
<tt
>upgrade-test
</tt
> for now, is doing the
170 <blockquote
><pre
>
174 if [
"$
1" ] ; then
183 exec
&lt; /dev/null
185 mirror=http://ftp.skolelinux.org/debian
186 tmpdir=chroot-$from-upgrade-$to-$desktop
188 debootstrap $from $tmpdir $mirror
189 chroot $tmpdir aptitude update
190 cat
> $tmpdir/usr/sbin/policy-rc.d
&lt;
&lt;EOF
194 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
198 mount -t proc proc $tmpdir/proc
199 # Make sure proc is unmounted also on failure
200 trap exit_cleanup EXIT INT
202 chroot $tmpdir aptitude -y install debconf-utils
204 # Make sure tasksel autoselection trigger. It need the test scripts
205 # to return the correct answers.
206 echo tasksel tasksel/desktop multiselect $desktop | \
207 chroot $tmpdir debconf-set-selections
209 # Include the desktop and laptop task
210 for test in desktop laptop ; do
211 echo
> $tmpdir/usr/lib/tasksel/tests/$test
&lt;
&lt;EOF
215 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
218 DEBIAN_FRONTEND=noninteractive
219 DEBIAN_PRIORITY=critical
220 export DEBIAN_FRONTEND DEBIAN_PRIORITY
221 chroot $tmpdir tasksel --new-install
223 echo deb $mirror $to main
> $tmpdir/etc/apt/sources.list
224 chroot $tmpdir aptitude update
225 touch $tmpdir/etc/udev/kernel-upgrade
226 chroot $tmpdir aptitude -y dist-upgrade
228 </pre
></blockquote
>
230 <p
>I suspect it would be useful to test upgrades with both apt-get and
231 with aptitude, but I have not had time to look at how they behave
232 differently so far. I hope to get a cron job running to do the test
233 regularly and post the result on the web. The Gnome upgrade currently
234 work, while the KDE upgrade fail because of the bug in
235 kdebase-workspace-data
</p
>
237 <p
>I am not quite sure what kind of extract from the huge upgrade logs
238 (KDE
167 KiB, Gnome
516 KiB) it make sense to include in this blog
239 post, so I will refrain from trying. I can report that for Gnome,
240 aptitude report
760 packages upgraded,
448 newly installed,
129 to
241 remove and
1 not upgraded and
1024MB need to be downloaded while for
242 KDE the same numbers are
702 packages upgraded,
507 newly installed,
243 193 to remove and
0 not upgraded and
1117MB need to be downloaded
</p
>
245 <p
>I am very happy to notice that the Gnome desktop + laptop upgrade
246 is able to migrate to dependency based boot sequencing and parallel
247 booting without a hitch. Was unsure if there were still bugs with
248 packages failing to clean up their obsolete init.d script during
249 upgrades, and no such problem seem to affect the Gnome desktop+laptop
255 <title>Upstart or sysvinit - as init.d scripts see it
</title>
256 <link>http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</link>
257 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</guid>
258 <pubDate>Sun,
6 Jun
2010 23:
55:
00 +
0200</pubDate>
259 <description><p
>If Debian is to migrate to upstart on Linux, I expect some init.d
260 scripts to migrate (some of) their operations to upstart job while
261 keeping the init.d for hurd and kfreebsd. The packages with such
262 needs will need a way to get their init.d scripts to behave
263 differently when used with sysvinit and with upstart. Because of
264 this, I had a look at the environment variables set when a init.d
265 script is running under upstart, and when it is not.
</p
>
267 <p
>With upstart, I notice these environment variables are set when a
268 script is started from rcS.d/ (ignoring some irrelevant ones like
271 <blockquote
><pre
>
277 UPSTART_EVENTS=startup
279 UPSTART_JOB=rc-sysinit
280 </pre
></blockquote
>
282 <p
>With sysvinit, these environment variables are set for the same
285 <blockquote
><pre
>
286 INIT_VERSION=sysvinit-
2.88
291 </pre
></blockquote
>
293 <p
>The RUNLEVEL and PREVLEVEL environment variables passed on from
294 sysvinit are not set by upstart. Not sure if it is intentional or not
295 to not be compatible with sysvinit in this regard.
</p
>
297 <p
>For scripts needing to behave differently when upstart is used,
298 looking for the UPSTART_JOB environment variable seem to be a good
304 <title>KDM fail at boot with NVidia cards - and no one try to fix it?
</title>
305 <link>http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</link>
306 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</guid>
307 <pubDate>Tue,
1 Jun
2010 17:
05:
00 +
0200</pubDate>
308 <description><p
>It is strange to watch how a bug in Debian causing KDM to fail to
309 start at boot when an NVidia video card is used is handled. The
310 problem seem to be that the nvidia X.org driver uses a long time to
311 initialize, and this duration is longer than kdm is configured to
314 <p
>I came across two bugs related to this issue,
315 <a href=
"http://bugs.debian.org/
583312">#
583312</a
> initially filed
316 against initscripts and passed on to nvidia-glx when it became obvious
317 that the nvidia drivers were involved, and
318 <a href=
"http://bugs.debian.org/
524751">#
524751</a
> initially filed against
319 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.
</p
>
321 <p
>To me, it seem that no-one is interested in actually solving the
322 problem nvidia video card owners experience and make sure the Debian
323 distribution work out of the box for these users. The nvidia driver
324 maintainers expect kdm to be set up to wait longer, while kdm expect
325 the nvidia driver maintainers to fix the driver to start faster, and
326 while they wait for each other I guess the users end up switching to a
327 distribution that work for them. I have no idea what the solution is,
328 but I am pretty sure that waiting for each other is not it.
</p
>
330 <p
>I wonder why we end up handling bugs this way.
</p
>
335 <title>Parallellized boot seem to hold up well in Debian/testing
</title>
336 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</link>
337 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</guid>
338 <pubDate>Thu,
27 May
2010 23:
55:
00 +
0200</pubDate>
339 <description><p
>A few days ago, parallel booting was enabled in Debian/testing.
340 The feature seem to hold up pretty well, but three fairly serious
341 issues are known and should be solved:
345 <li
>The wicd package seen to
346 <a href=
"http://bugs.debian.org/
508289">break NFS mounting
</a
> and
347 <a href=
"http://bugs.debian.org/
581586">network setup
</a
> when
348 parallel booting is enabled. No idea why, but the wicd maintainer
349 seem to be on the case.
</li
>
351 <li
>The nvidia X driver seem to
352 <a href=
"http://bugs.debian.org/
583312">have a race condition
</a
>
353 triggered more easily when parallel booting is in effect. The
354 maintainer is on the case.
</li
>
356 <li
>The sysv-rc package fail to properly enable dependency based boot
357 sequencing (the shutdown is broken) when old file-rc users
358 <a href=
"http://bugs.debian.org/
575080">try to switch back
</a
> to
359 sysv-rc. One way to solve it would be for file-rc to create
360 /etc/init.d/.legacy-bootordering, and another is to try to make
361 sysv-rc more robust. Will investigate some more and probably upload a
362 workaround in sysv-rc to help those trying to move from file-rc to
363 sysv-rc get a working shutdown.
</li
>
365 </ul
></p
>
367 <p
>All in all not many surprising issues, and all of them seem
368 solvable before Squeeze is released. In addition to these there are
369 some packages with bugs in their dependencies and run level settings,
370 which I expect will be fixed in a reasonable time span.
</p
>
372 <p
>If you report any problems with dependencies in init.d scripts to
373 the BTS, please usertag the report to get it to show up at
374 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
375 list of usertagged bugs related to this
</a
>.
</p
>
377 <p
>Update: Correct bug number to file-rc issue.
</p
>
382 <title>Parallellized boot is now the default in Debian/unstable
</title>
383 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</link>
384 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</guid>
385 <pubDate>Fri,
14 May
2010 22:
40:
00 +
0200</pubDate>
386 <description><p
>Since this evening, parallel booting is the default in
387 Debian/unstable for machines using dependency based boot sequencing.
388 Apparently the testing of concurrent booting has been wider than
389 expected, if I am to believe the
390 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg00122.html
">input
391 on debian-devel@
</a
>, and I concluded a few days ago to move forward
392 with the feature this weekend, to give us some time to detect any
393 remaining problems before Squeeze is frozen. If serious problems are
394 detected, it is simple to change the default back to sequential boot.
395 The upload of the new sysvinit package also activate a new upstream
398 More information about
399 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
400 based boot sequencing
</a
> is available from the Debian wiki. It is
401 currently possible to disable parallel booting when one run into
402 problems caused by it, by adding this line to /etc/default/rcS:
</p
>
404 <blockquote
><pre
>
406 </pre
></blockquote
>
408 <p
>If you report any problems with dependencies in init.d scripts to
409 the BTS, please usertag the report to get it to show up at
410 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
411 list of usertagged bugs related to this
</a
>.
</p
>
416 <title>systemd, an interesting alternative to upstart
</title>
417 <link>http://people.skolelinux.org/pere/blog/systemd__an_interesting_alternative_to_upstart.html
</link>
418 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/systemd__an_interesting_alternative_to_upstart.html
</guid>
419 <pubDate>Thu,
13 May
2010 22:
20:
00 +
0200</pubDate>
420 <description><p
>The last few days a new boot system called
421 <a href=
"http://www.freedesktop.org/wiki/Software/systemd
">systemd
</a
>
423 <a href=
"http://
0pointer.de/blog/projects/systemd.html
">introduced
</a
>
425 to the free software world. I have not yet had time to play around
426 with it, but it seem to be a very interesting alternative to
427 <a href=
"http://upstart.ubuntu.com/
">upstart
</a
>, and might prove to be
428 a good alternative for Debian when we are able to switch to an event
429 based boot system. Tollef is
430 <a href=
"http://bugs.debian.org/
580814">in the process
</a
> of getting
431 systemd into Debian, and I look forward to seeing how well it work. I
432 like the fact that systemd handles init.d scripts with dependency
433 information natively, allowing them to run in parallel where upstart
434 at the moment do not.
</p
>
436 <p
>Unfortunately do systemd have the same problem as upstart regarding
437 platform support. It only work on recent Linux kernels, and also need
438 some new kernel features enabled to function properly. This means
439 kFreeBSD and Hurd ports of Debian will need a port or a different boot
440 system. Not sure how that will be handled if systemd proves to be the
441 way forward.
</p
>
443 <p
>In the mean time, based on the
444 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg00122.html
">input
445 on debian-devel@
</a
> regarding parallel booting in Debian, I have
446 decided to enable full parallel booting as the default in Debian as
447 soon as possible (probably this weekend or early next week), to see if
448 there are any remaining serious bugs in the init.d dependencies. A
449 new version of the sysvinit package implementing this change is
450 already in experimental. If all go well, Squeeze will be released
451 with parallel booting enabled by default.
</p
>
456 <title>Parallellizing the boot in Debian Squeeze - ready for wider testing
</title>
457 <link>http://people.skolelinux.org/pere/blog/Parallellizing_the_boot_in_Debian_Squeeze___ready_for_wider_testing.html
</link>
458 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellizing_the_boot_in_Debian_Squeeze___ready_for_wider_testing.html
</guid>
459 <pubDate>Thu,
6 May
2010 23:
25:
00 +
0200</pubDate>
460 <description><p
>These days, the init.d script dependencies in Squeeze are quite
461 complete, so complete that it is actually possible to run all the
462 init.d scripts in parallell based on these dependencies. If you want
463 to test your Squeeze system, make sure
464 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
465 based boot sequencing
</a
> is enabled, and add this line to
466 /etc/default/rcS:
</p
>
468 <blockquote
><pre
>
470 </pre
></blockquote
>
472 <p
>That is it. It will cause sysv-rc to use the startpar tool to run
473 scripts in parallel using the dependency information stored in
474 /etc/init.d/.depend.boot, /etc/init.d/.depend.start and
475 /etc/init.d/.depend.stop to order the scripts. Startpar is configured
476 to try to start the kdm and gdm scripts as early as possible, and will
477 start the facilities required by kdm or gdm as early as possible to
478 make this happen.
</p
>
480 <p
>Give it a try, and see if you like the result. If some services
481 fail to start properly, it is most likely because they have incomplete
482 init.d script dependencies in their startup script (or some of their
483 dependent scripts have incomplete dependencies). Report bugs and get
484 the package maintainers to fix it. :)
</p
>
486 <p
>Running scripts in parallel could be the default in Debian when we
487 manage to get the init.d script dependencies complete and correct. I
488 expect we will get there in Squeeze+
1, if we get manage to test and
489 fix the remaining issues.
</p
>
491 <p
>If you report any problems with dependencies in init.d scripts to
492 the BTS, please usertag the report to get it to show up at
493 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
494 list of usertagged bugs related to this
</a
>.
</p
>
499 <title>Debian has switched to dependency based boot sequencing
</title>
500 <link>http://people.skolelinux.org/pere/blog/Debian_has_switched_to_dependency_based_boot_sequencing.html
</link>
501 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_has_switched_to_dependency_based_boot_sequencing.html
</guid>
502 <pubDate>Mon,
27 Jul
2009 23:
50:
00 +
0200</pubDate>
503 <description><p
>Since this evening, with the upload of sysvinit version
2.87dsf-
2,
504 and the upload of insserv version
1.12.0-
10 yesterday, Debian unstable
505 have been migrated to using dependency based boot sequencing. This
506 conclude work me and others have been doing for the last three days.
507 It feels great to see this finally part of the default Debian
508 installation. Now we just need to weed out the last few problems that
509 are bound to show up, to get everything ready for Squeeze.
</p
>
511 <p
>The next step is migrating /sbin/init from sysvinit to upstart, and
512 fixing the more fundamental problem of handing the event based
513 non-predictable kernel in the early boot.
</p
>
518 <title>Taking over sysvinit development
</title>
519 <link>http://people.skolelinux.org/pere/blog/Taking_over_sysvinit_development.html
</link>
520 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Taking_over_sysvinit_development.html
</guid>
521 <pubDate>Wed,
22 Jul
2009 23:
00:
00 +
0200</pubDate>
522 <description><p
>After several years of frustration with the lack of activity from
523 the existing sysvinit upstream developer, I decided a few weeks ago to
524 take over the package and become the new upstream. The number of
525 patches to track for the Debian package was becoming a burden, and the
526 lack of synchronization between the distribution made it hard to keep
527 the package up to date.
</p
>
529 <p
>On the new sysvinit team is the SuSe maintainer Dr. Werner Fink,
530 and my Debian co-maintainer Kel Modderman. About
10 days ago, I made
531 a new upstream tarball with version number
2.87dsf (for Debian, SuSe
532 and Fedora), based on the patches currently in use in these
533 distributions. We Debian maintainers plan to move to this tarball as
534 the new upstream as soon as we find time to do the merge. Since the
535 new tarball was created, we agreed with Werner at SuSe to make a new
536 upstream project at
<a href=
"http://savannah.nongnu.org/
">Savannah
</a
>, and continue
537 development there. The project is registered and currently waiting
538 for approval by the Savannah administrators, and as soon as it is
539 approved, we will import the old versions from svn and continue
540 working on the future release.
</p
>
542 <p
>It is a bit ironic that this is done now, when some of the involved
543 distributions are moving to upstart as a syvinit replacement.
</p
>
548 <title>Debian boots quicker and quicker
</title>
549 <link>http://people.skolelinux.org/pere/blog/Debian_boots_quicker_and_quicker.html
</link>
550 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_boots_quicker_and_quicker.html
</guid>
551 <pubDate>Wed,
24 Jun
2009 21:
40:
00 +
0200</pubDate>
552 <description><p
>I spent Monday and tuesday this week in London with a lot of the
553 people involved in the boot system on Debian and Ubuntu, to see if we
554 could find more ways to speed up the boot system. This was an Ubuntu
556 <a href=
"https://wiki.ubuntu.com/FoundationsTeam/BootPerformance/DebianUbuntuSprint
">developer
557 gathering
</a
>. It was quite productive. We also discussed the future
558 of boot systems, and ways to handle the increasing number of boot
559 issues introduced by the Linux kernel becoming more and more
560 asynchronous and event base. The Ubuntu approach using udev and
561 upstart might be a good way forward. Time will show.
</p
>
563 <p
>Anyway, there are a few ways at the moment to speed up the boot
564 process in Debian. All of these should be applied to get a quick
569 <li
>Use dash as /bin/sh.
</li
>
571 <li
>Disable the init.d/hwclock*.sh scripts and make sure the hardware
572 clock is in UTC.
</li
>
574 <li
>Install and activate the insserv package to enable
575 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
576 based boot sequencing
</a
>, and enable concurrent booting.
</li
>
580 These points are based on the Google summer of code work done by
581 <a href=
"http://initscripts-ng.alioth.debian.org/soc2006-bootsystem/
">Carlos
584 <p
>Support for makefile-style concurrency during boot was uploaded to
585 unstable yesterday. When we tested it, we were able to cut
6 seconds
586 from the boot sequence. It depend on very correct dependency
587 declaration in all init.d scripts, so I expect us to find edge cases
588 where the dependences in some scripts are slightly wrong when we start
589 using this.
</p
>
591 <p
>On our IRC channel for this effort, #pkg-sysvinit, a new idea was
592 introduced by Raphael Geissert today, one that could affect the
593 startup speed as well. Instead of starting some scripts concurrently
594 from rcS.d/ and another set of scripts from rc2.d/, it would be
595 possible to run a of them in the same process. A quick way to test
596 this would be to enable insserv and run
'mv /etc/rc2.d/S* /etc/rcS.d/;
597 insserv
'. Will need to test if that work. :)
</p
>