Re: [OT] speeding boot process (was Re: [ANNOUNCE] hotplug-ng 001 release)

Miquel van Smoorenburg
2005-02-16T01:55:47Z

In article <4211F706.4030104@aitel.hist.no>,
Helge Hafting <helge.hafting@aitel.hist.no> wrote:
>Bernd Petrovitsch wrote:
>>This would be a win (especially if the numbers are tweked to tune this)
>>with a relatively small effort.
>>However for real dependencies and parallelism you want the info similar
>>to creat a Makefile from it (i.e. the explicit dependency from service X
>>to service Y). As a consequence you can get rid of the numbers (since
>>they are not needed any more).
>>
>Now that is a really good idea. Init could simply run "make -j init2" to
>enter runlevel 2. A suitable makefile would list all dependencies, and
>of course the targets needed for "init2", "init3" and so on.

It's not too hard to script it using 'tsort', either.

The hard part is getting all the dependencies of the scripts right.
And once you've done that, to _keep_ them right.

Now how do you implement that on a Debian system that is package-wise
somewhere between potato and sarge ... (yes, I've encountered those).

Solveable, not trivial.

Mike.