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>Parallellized boot is now the default in Debian/unstable
</title>
11 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_is_now_the_default_in_Debian_unstable.html
</guid>
13 <pubDate>Fri,
14 May
2010 22:
40:
00 +
0200</pubDate>
15 <p
>Since this evening, parallel booting is the default in
16 Debian/unstable for machines using dependency based boot sequencing.
17 Apparently the testing of concurrent booting has been wider than
18 expected, if I am to believe the
19 <a href=
"http://lists.debian.org/debian-devel/
2010/
05/msg00122.html
">input
20 on debian-devel@
</a
>, and I concluded a few days ago to move forward
21 with the feature this weekend, to give us some time to detect any
22 remaining problems before Squeeze is frozen. If serious problems are
23 detected, it is simple to change the default back to sequential boot.
24 The upload of the new sysvinit package also activate a new upstream
27 More information about
28 <a href=
"http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
">dependency
29 based boot sequencing
</a
> is available from the Debian wiki. It is
30 currently possible to disable parallel booting when one run into
31 problems caused by it, by adding this line to /etc/default/rcS:
</p
>
33 <blockquote
><pre
>
35 </pre
></blockquote
>
37 <p
>If you report any problems with dependencies in init.d scripts to
38 the BTS, please usertag the report to get it to show up at
39 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
40 list of usertagged bugs related to this
</a
>.
</p
>
45 <title>Parallellized boot seem to hold up well in Debian/testing
</title>
46 <link>http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</link>
47 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Parallellized_boot_seem_to_hold_up_well_in_Debian_testing.html
</guid>
48 <pubDate>Thu,
27 May
2010 23:
55:
00 +
0200</pubDate>
50 <p
>A few days ago, parallel booting was enabled in Debian/testing.
51 The feature seem to hold up pretty well, but three fairly serious
52 issues are known and should be solved:
56 <li
>The wicd package seen to
57 <a href=
"http://bugs.debian.org/
508289">break NFS mounting
</a
> and
58 <a href=
"http://bugs.debian.org/
581586">network setup
</a
> when
59 parallel booting is enabled. No idea why, but the wicd maintainer
60 seem to be on the case.
</li
>
62 <li
>The nvidia X driver seem to
63 <a href=
"http://bugs.debian.org/
583312">have a race condition
</a
>
64 triggered more easily when parallel booting is in effect. The
65 maintainer is on the case.
</li
>
67 <li
>The sysv-rc package fail to properly enable dependency based boot
68 sequencing (the shutdown is broken) when old file-rc users
69 <a href=
"http://bugs.debian.org/
575080">try to switch back
</a
> to
70 sysv-rc. One way to solve it would be for file-rc to create
71 /etc/init.d/.legacy-bootordering, and another is to try to make
72 sysv-rc more robust. Will investigate some more and probably upload a
73 workaround in sysv-rc to help those trying to move from file-rc to
74 sysv-rc get a working shutdown.
</li
>
78 <p
>All in all not many surprising issues, and all of them seem
79 solvable before Squeeze is released. In addition to these there are
80 some packages with bugs in their dependencies and run level settings,
81 which I expect will be fixed in a reasonable time span.
</p
>
83 <p
>If you report any problems with dependencies in init.d scripts to
84 the BTS, please usertag the report to get it to show up at
85 <a href=
"http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org
">the
86 list of usertagged bugs related to this
</a
>.
</p
>
88 <p
>Update: Correct bug number to file-rc issue.
</p
>
93 <title>KDM fail at boot with NVidia cards - and no one try to fix it?
</title>
94 <link>http://people.skolelinux.org/pere/blog/KDM_fail_at_boot_with_NVidia_cards___and_no_one_try_to_fix_it_.html
</link>
95 <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>
96 <pubDate>Tue,
1 Jun
2010 17:
05:
00 +
0200</pubDate>
98 <p
>It is strange to watch how a bug in Debian causing KDM to fail to
99 start at boot when an NVidia video card is used is handled. The
100 problem seem to be that the nvidia X.org driver uses a long time to
101 initialize, and this duration is longer than kdm is configured to
104 <p
>I came across two bugs related to this issue,
105 <a href=
"http://bugs.debian.org/
583312">#
583312</a
> initially filed
106 against initscripts and passed on to nvidia-glx when it became obvious
107 that the nvidia drivers were involved, and
108 <a href=
"http://bugs.debian.org/
524751">#
524751</a
> initially filed against
109 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.
</p
>
111 <p
>To me, it seem that no-one is interested in actually solving the
112 problem nvidia video card owners experience and make sure the Debian
113 distribution work out of the box for these users. The nvidia driver
114 maintainers expect kdm to be set up to wait longer, while kdm expect
115 the nvidia driver maintainers to fix the driver to start faster, and
116 while they wait for each other I guess the users end up switching to a
117 distribution that work for them. I have no idea what the solution is,
118 but I am pretty sure that waiting for each other is not it.
</p
>
120 <p
>I wonder why we end up handling bugs this way.
</p
>
125 <title>Upstart or sysvinit - as init.d scripts see it
</title>
126 <link>http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</link>
127 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Upstart_or_sysvinit___as_init_d_scripts_see_it.html
</guid>
128 <pubDate>Sun,
6 Jun
2010 23:
55:
00 +
0200</pubDate>
130 <p
>If Debian is to migrate to upstart on Linux, I expect some init.d
131 scripts to migrate (some of) their operations to upstart job while
132 keeping the init.d for hurd and kfreebsd. The packages with such
133 needs will need a way to get their init.d scripts to behave
134 differently when used with sysvinit and with upstart. Because of
135 this, I had a look at the environment variables set when a init.d
136 script is running under upstart, and when it is not.
</p
>
138 <p
>With upstart, I notice these environment variables are set when a
139 script is started from rcS.d/ (ignoring some irrelevant ones like
142 <blockquote
><pre
>
148 UPSTART_EVENTS=startup
150 UPSTART_JOB=rc-sysinit
151 </pre
></blockquote
>
153 <p
>With sysvinit, these environment variables are set for the same
156 <blockquote
><pre
>
157 INIT_VERSION=sysvinit-
2.88
162 </pre
></blockquote
>
164 <p
>The RUNLEVEL and PREVLEVEL environment variables passed on from
165 sysvinit are not set by upstart. Not sure if it is intentional or not
166 to not be compatible with sysvinit in this regard.
</p
>
168 <p
>For scripts needing to behave differently when upstart is used,
169 looking for the UPSTART_JOB environment variable seem to be a good
175 <title>Automatic upgrade testing from Lenny to Squeeze
</title>
176 <link>http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</link>
177 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Automatic_upgrade_testing_from_Lenny_to_Squeeze.html
</guid>
178 <pubDate>Fri,
11 Jun
2010 22:
50:
00 +
0200</pubDate>
180 <p
>The last few days I have done some upgrade testing in Debian, to
181 see if the upgrade from Lenny to Squeeze will go smoothly. A few bugs
182 have been discovered and reported in the process
183 (
<a href=
"http://bugs.debian.org/
585410">#
585410</a
> in nagios3-cgi,
184 <a href=
"http://bugs.debian.org/
584879">#
584879</a
> already fixed in
185 enscript and
<a href=
"http://bugs.debian.org/
584861">#
584861</a
> in
186 kdebase-workspace-data), and to get a more regular testing going on, I
187 am working on a script to automate the test.
</p
>
189 <p
>The idea is to create a Lenny chroot and use tasksel to install a
190 Gnome or KDE desktop installation inside the chroot before upgrading
191 it. To ensure no services are started in the chroot, a policy-rc.d
192 script is inserted. To make sure tasksel believe it is to install a
193 desktop on a laptop, the tasksel tests are replaced in the chroot
194 (only acceptable because this is a throw-away chroot).
</p
>
196 <p
>A naive upgrade from Lenny to Squeeze using aptitude dist-upgrade
197 currently always fail because udev refuses to upgrade with the kernel
198 in Lenny, so to avoid that problem the file /etc/udev/kernel-upgrade
199 is created. The bug report
200 <a href=
"http://bugs.debian.org/
566000">#
566000</a
> make me suspect
201 this problem do not trigger in a chroot, but I touch the file anyway
202 to make sure the upgrade go well. Testing on virtual and real
203 hardware have failed me because of udev so far, and creating this file
204 do the trick in such settings anyway. This is a
205 <a href=
"http://www.linuxquestions.org/questions/debian-
26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-
804130/
">known
206 issue
</a
> and the current udev behaviour is intended by the udev
207 maintainer because he lack the resources to rewrite udev to keep
208 working with old kernels or something like that. I really wish the
209 udev upstream would keep udev backwards compatible, to avoid such
210 upgrade problem, but given that they fail to do so, I guess
211 documenting the way out of this mess is the best option we got for
212 Debian Squeeze.
</p
>
214 <p
>Anyway, back to the task at hand, testing upgrades. This test
215 script, which I call
<tt
>upgrade-test
</tt
> for now, is doing the
218 <blockquote
><pre
>
222 if [
"$
1" ] ; then
231 exec
&lt; /dev/null
233 mirror=http://ftp.skolelinux.org/debian
234 tmpdir=chroot-$from-upgrade-$to-$desktop
236 debootstrap $from $tmpdir $mirror
237 chroot $tmpdir aptitude update
238 cat
> $tmpdir/usr/sbin/policy-rc.d
&lt;
&lt;EOF
242 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
246 mount -t proc proc $tmpdir/proc
247 # Make sure proc is unmounted also on failure
248 trap exit_cleanup EXIT INT
250 chroot $tmpdir aptitude -y install debconf-utils
252 # Make sure tasksel autoselection trigger. It need the test scripts
253 # to return the correct answers.
254 echo tasksel tasksel/desktop multiselect $desktop | \
255 chroot $tmpdir debconf-set-selections
257 # Include the desktop and laptop task
258 for test in desktop laptop ; do
259 echo
> $tmpdir/usr/lib/tasksel/tests/$test
&lt;
&lt;EOF
263 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
266 DEBIAN_FRONTEND=noninteractive
267 DEBIAN_PRIORITY=critical
268 export DEBIAN_FRONTEND DEBIAN_PRIORITY
269 chroot $tmpdir tasksel --new-install
271 echo deb $mirror $to main
> $tmpdir/etc/apt/sources.list
272 chroot $tmpdir aptitude update
273 touch $tmpdir/etc/udev/kernel-upgrade
274 chroot $tmpdir aptitude -y dist-upgrade
276 </pre
></blockquote
>
278 <p
>I suspect it would be useful to test upgrades with both apt-get and
279 with aptitude, but I have not had time to look at how they behave
280 differently so far. I hope to get a cron job running to do the test
281 regularly and post the result on the web. The Gnome upgrade currently
282 work, while the KDE upgrade fail because of the bug in
283 kdebase-workspace-data
</p
>
285 <p
>I am not quite sure what kind of extract from the huge upgrade logs
286 (KDE
167 KiB, Gnome
516 KiB) it make sense to include in this blog
287 post, so I will refrain from trying. I can report that for Gnome,
288 aptitude report
760 packages upgraded,
448 newly installed,
129 to
289 remove and
1 not upgraded and
1024MB need to be downloaded while for
290 KDE the same numbers are
702 packages upgraded,
507 newly installed,
291 193 to remove and
0 not upgraded and
1117MB need to be downloaded
</p
>
293 <p
>I am very happy to notice that the Gnome desktop + laptop upgrade
294 is able to migrate to dependency based boot sequencing and parallel
295 booting without a hitch. Was unsure if there were still bugs with
296 packages failing to clean up their obsolete init.d script during
297 upgrades, and no such problem seem to affect the Gnome desktop+laptop