]> pere.pagekite.me Git - homepage.git/blob - blog/tags/bootsystem/bootsystem.rss
725644b495b2179ef117ec3b022154980119507d
[homepage.git] / blog / tags / bootsystem / bootsystem.rss
1 <?xml version="1.0" encoding="utf-8"?>
2 <rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
3 <channel>
4 <title>Petter Reinholdtsen - Entries tagged bootsystem</title>
5 <description>Entries tagged bootsystem</description>
6 <link>http://people.skolelinux.org/pere/blog/</link>
7
8
9 <item>
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>
14 <description>
15 &lt;p&gt;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 &lt;a href=&quot;http://lists.debian.org/debian-devel/2010/05/msg00122.html&quot;&gt;input
20 on debian-devel@&lt;/a&gt;, 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
25 version.&lt;/p&gt;
26
27 More information about
28 &lt;a href=&quot;http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot&quot;&gt;dependency
29 based boot sequencing&lt;/a&gt; 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:&lt;/p&gt;
32
33 &lt;blockquote&gt;&lt;pre&gt;
34 CONCURRENCY=none
35 &lt;/pre&gt;&lt;/blockquote&gt;
36
37 &lt;p&gt;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 &lt;a href=&quot;http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org&quot;&gt;the
40 list of usertagged bugs related to this&lt;/a&gt;.&lt;/p&gt;
41 </description>
42 </item>
43
44 <item>
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>
49 <description>
50 &lt;p&gt;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:
53
54 &lt;p&gt;&lt;ul&gt;
55
56 &lt;li&gt;The wicd package seen to
57 &lt;a href=&quot;http://bugs.debian.org/508289&quot;&gt;break NFS mounting&lt;/a&gt; and
58 &lt;a href=&quot;http://bugs.debian.org/581586&quot;&gt;network setup&lt;/a&gt; when
59 parallel booting is enabled. No idea why, but the wicd maintainer
60 seem to be on the case.&lt;/li&gt;
61
62 &lt;li&gt;The nvidia X driver seem to
63 &lt;a href=&quot;http://bugs.debian.org/583312&quot;&gt;have a race condition&lt;/a&gt;
64 triggered more easily when parallel booting is in effect. The
65 maintainer is on the case.&lt;/li&gt;
66
67 &lt;li&gt;The sysv-rc package fail to properly enable dependency based boot
68 sequencing (the shutdown is broken) when old file-rc users
69 &lt;a href=&quot;http://bugs.debian.org/575080&quot;&gt;try to switch back&lt;/a&gt; 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.&lt;/li&gt;
75
76 &lt;/ul&gt;&lt;/p&gt;
77
78 &lt;p&gt;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.&lt;/p&gt;
82
83 &lt;p&gt;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 &lt;a href=&quot;http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=initscripts-ng-devel@lists.alioth.debian.org&quot;&gt;the
86 list of usertagged bugs related to this&lt;/a&gt;.&lt;/p&gt;
87
88 &lt;p&gt;Update: Correct bug number to file-rc issue.&lt;/p&gt;
89 </description>
90 </item>
91
92 <item>
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>
97 <description>
98 &lt;p&gt;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
102 wait.&lt;/p&gt;
103
104 &lt;p&gt;I came across two bugs related to this issue,
105 &lt;a href=&quot;http://bugs.debian.org/583312&quot;&gt;#583312&lt;/a&gt; initially filed
106 against initscripts and passed on to nvidia-glx when it became obvious
107 that the nvidia drivers were involved, and
108 &lt;a href=&quot;http://bugs.debian.org/524751&quot;&gt;#524751&lt;/a&gt; initially filed against
109 kdm and passed on to src:nvidia-graphics-drivers for unknown reasons.&lt;/p&gt;
110
111 &lt;p&gt;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.&lt;/p&gt;
119
120 &lt;p&gt;I wonder why we end up handling bugs this way.&lt;/p&gt;
121 </description>
122 </item>
123
124 <item>
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>
129 <description>
130 &lt;p&gt;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.&lt;/p&gt;
137
138 &lt;p&gt;With upstart, I notice these environment variables are set when a
139 script is started from rcS.d/ (ignoring some irrelevant ones like
140 COLUMNS):&lt;/p&gt;
141
142 &lt;blockquote&gt;&lt;pre&gt;
143 DEFAULT_RUNLEVEL=2
144 previous=N
145 PREVLEVEL=
146 RUNLEVEL=
147 runlevel=S
148 UPSTART_EVENTS=startup
149 UPSTART_INSTANCE=
150 UPSTART_JOB=rc-sysinit
151 &lt;/pre&gt;&lt;/blockquote&gt;
152
153 &lt;p&gt;With sysvinit, these environment variables are set for the same
154 script.&lt;/p&gt;
155
156 &lt;blockquote&gt;&lt;pre&gt;
157 INIT_VERSION=sysvinit-2.88
158 previous=N
159 PREVLEVEL=N
160 RUNLEVEL=S
161 runlevel=S
162 &lt;/pre&gt;&lt;/blockquote&gt;
163
164 &lt;p&gt;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.&lt;/p&gt;
167
168 &lt;p&gt;For scripts needing to behave differently when upstart is used,
169 looking for the UPSTART_JOB environment variable seem to be a good
170 choice.&lt;/p&gt;
171 </description>
172 </item>
173
174 <item>
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>
179 <description>
180 &lt;p&gt;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 (&lt;a href=&quot;http://bugs.debian.org/585410&quot;&gt;#585410&lt;/a&gt; in nagios3-cgi,
184 &lt;a href=&quot;http://bugs.debian.org/584879&quot;&gt;#584879&lt;/a&gt; already fixed in
185 enscript and &lt;a href=&quot;http://bugs.debian.org/584861&quot;&gt;#584861&lt;/a&gt; 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.&lt;/p&gt;
188
189 &lt;p&gt;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).&lt;/p&gt;
195
196 &lt;p&gt;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 &lt;a href=&quot;http://bugs.debian.org/566000&quot;&gt;#566000&lt;/a&gt; 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 &lt;a href=&quot;http://www.linuxquestions.org/questions/debian-26/failed-dist-upgrade-due-to-udev-config_sysfs_deprecated-nonsense-804130/&quot;&gt;known
206 issue&lt;/a&gt; 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.&lt;/p&gt;
213
214 &lt;p&gt;Anyway, back to the task at hand, testing upgrades. This test
215 script, which I call &lt;tt&gt;upgrade-test&lt;/tt&gt; for now, is doing the
216 trick:&lt;/p&gt;
217
218 &lt;blockquote&gt;&lt;pre&gt;
219 #!/bin/sh
220 set -ex
221
222 if [ &quot;$1&quot; ] ; then
223 desktop=$1
224 else
225 desktop=gnome
226 fi
227
228 from=lenny
229 to=squeeze
230
231 exec &amp;lt; /dev/null
232 unset LANG
233 mirror=http://ftp.skolelinux.org/debian
234 tmpdir=chroot-$from-upgrade-$to-$desktop
235 fuser -mv .
236 debootstrap $from $tmpdir $mirror
237 chroot $tmpdir aptitude update
238 cat &gt; $tmpdir/usr/sbin/policy-rc.d &amp;lt;&amp;lt;EOF
239 #!/bin/sh
240 exit 101
241 EOF
242 chmod a+rx $tmpdir/usr/sbin/policy-rc.d
243 exit_cleanup() {
244 umount $tmpdir/proc
245 }
246 mount -t proc proc $tmpdir/proc
247 # Make sure proc is unmounted also on failure
248 trap exit_cleanup EXIT INT
249
250 chroot $tmpdir aptitude -y install debconf-utils
251
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
256
257 # Include the desktop and laptop task
258 for test in desktop laptop ; do
259 echo &gt; $tmpdir/usr/lib/tasksel/tests/$test &amp;lt;&amp;lt;EOF
260 #!/bin/sh
261 exit 2
262 EOF
263 chmod a+rx $tmpdir/usr/lib/tasksel/tests/$test
264 done
265
266 DEBIAN_FRONTEND=noninteractive
267 DEBIAN_PRIORITY=critical
268 export DEBIAN_FRONTEND DEBIAN_PRIORITY
269 chroot $tmpdir tasksel --new-install
270
271 echo deb $mirror $to main &gt; $tmpdir/etc/apt/sources.list
272 chroot $tmpdir aptitude update
273 touch $tmpdir/etc/udev/kernel-upgrade
274 chroot $tmpdir aptitude -y dist-upgrade
275 fuser -mv
276 &lt;/pre&gt;&lt;/blockquote&gt;
277
278 &lt;p&gt;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&lt;/p&gt;
284
285 &lt;p&gt;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&lt;/p&gt;
292
293 &lt;p&gt;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
298 packages.&lt;/p&gt;
299 </description>
300 </item>
301
302 </channel>
303 </rss>