On Mon, 2008-03-31 at 08:37 +0200, Petter Reinholdtsen wrote: > [Michael Biebl] > > I don't understand, why it shouldn't be possible, that a single > > update-rc.insserv run, reoders *all* init scripts in one go. You > > could still skip the ones, which will cause loops or have no > > dependency information. > > Well, there are two things that need to be done as insserv work today: > > - Call update-rc.d in dependency order when adding new scripts to the > boot sequence (one call is not going to work). It refuses to > install a script (and in consequence, the package) if the scripts > hard dependencies are not already inserted into the boot sequence. > > - Refuse to install a package that introduces a dependency loop, > while allowing those that do not introduce a loop to install, to > avoid getting an unstable boot sequence (as in, there is no way to > know how to order the scripts involved in a loop). > > I'm not aware of triggers being able to do that. Besides, one need to > be very careful when changing the boot sequence, to make sure the > machine stay bootable. :) Unless I'm confused, the current system doesn't provide any guarantee against loops in the case of upgrades that add dependencies. Even if you refuse to finish the install, the new package, with the new script, are already present, are they not?(*) -Rob (*) I haven't checked the code here; sorry. -- GPG key available at: <http://www.robertcollins.net/keys.txt>.
Description: This is a digitally signed message part