Re: The future of non-dependency-based boot

2012-05-02 Thread James Cloos
PR == Petter Reinholdtsen p...@hungry.com writes: PR You do not have to edit the init.d files themselves to override PR their dependencies, and risk them going away during upgrades. I PR created the possibility for the system administrator to insert PR overrides in /etc/insserv/overrides/ for

Re: The future of non-dependency-based boot

2012-04-19 Thread Petter Reinholdtsen
[Roger Leigh] I can't see why not at first glance--it's done its job, so should no longer be needed. It is still needed in two use cases. 1) Machine upgraded from Lenny where the migration was not done. Either because it could not be done, or because the user choose not to do it.

Re: The future of non-dependency-based boot

2012-04-19 Thread Roger Leigh
On Thu, Apr 19, 2012 at 09:01:55AM +0200, Petter Reinholdtsen wrote: [Roger Leigh] I can't see why not at first glance--it's done its job, so should no longer be needed. It is still needed in two use cases. 1) Machine upgraded from Lenny where the migration was not done. Either

Re: The future of non-dependency-based boot

2012-04-19 Thread Tollef Fog Heen
]] Roger Leigh (I don't know if you saw my mail regarding having done this provisionally in git; I mentioned it on the pkg-sysvinit-devel list and in #545976. I was wanting to additionally ask you how safe it would be to remove the is_unsafe_to_activate check and just run insserv anyway,

Re: The future of non-dependency-based boot

2012-04-19 Thread Roger Leigh
On Thu, Apr 19, 2012 at 12:52:23PM +0200, Tollef Fog Heen wrote: ]] Roger Leigh (I don't know if you saw my mail regarding having done this provisionally in git; I mentioned it on the pkg-sysvinit-devel list and in #545976. I was wanting to additionally ask you how safe it would be to

Re: The future of non-dependency-based boot

2012-04-19 Thread Tollef Fog Heen
]] Roger Leigh Could you provide examples please? If there are init scripts which it can't handle, that's a bug. Either in insserv or (more likely) the scripts. It fails to handle the case where something provides a virtual facility, at least. It also seems to think that

Re: The future of non-dependency-based boot

2012-04-18 Thread Goswin von Brederlow
Roger Leigh rle...@codelibre.net writes: On Wed, Apr 11, 2012 at 12:13:09PM +0200, Goswin von Brederlow wrote: Roger Leigh rle...@codelibre.net writes: As a side note I have a use case at work where static order seems to be needed. We build boot images for network boot of clusters. During

Re: The future of non-dependency-based boot

2012-04-18 Thread Goswin von Brederlow
Petter Reinholdtsen p...@hungry.com writes: [Sven Joachim] I beg to disagree, it is already unsupportable because the only way to test it is to set up a lenny system, create some local init script without LSB headers to prevent migration to dependency based boot, and then upgrade all the way

Re: The future of non-dependency-based boot

2012-04-18 Thread Goswin von Brederlow
Raphael Geissert geiss...@debian.org writes: Goswin von Brederlow wrote: 3) Aborting the upgrade because dependency boot ordering fails will be a major issue for users. You already mentioned 2 issues and on my system at home I get an error about a dependency loop. Dependency based boot

Re: The future of non-dependency-based boot

2012-04-18 Thread Philipp Kern
On Wed, Apr 18, 2012 at 11:00:00AM +0200, Goswin von Brederlow wrote: Petter Reinholdtsen p...@hungry.com writes: [Sven Joachim] I beg to disagree, it is already unsupportable because the only way to test it is to set up a lenny system, create some local init script without LSB headers to

Re: The future of non-dependency-based boot

2012-04-18 Thread Roger Leigh
On Wed, Apr 18, 2012 at 07:15:48PM +0200, Philipp Kern wrote: On Wed, Apr 18, 2012 at 11:00:00AM +0200, Goswin von Brederlow wrote: Petter Reinholdtsen p...@hungry.com writes: [Sven Joachim] I beg to disagree, it is already unsupportable because the only way to test it is to set up a

Re: The future of non-dependency-based boot

2012-04-15 Thread James Cloos
Three notes: Manually choosing the order remains a reasonable choice for many servers. The upstream dependencies are not always sufficiently detailed and edits to the init files can be lost when upgrading. Such servers generally start only a few services and hand-tuning the order is easy and

Re: The future of non-dependency-based boot

2012-04-15 Thread Petter Reinholdtsen
[James Cloos] Manually choosing the order remains a reasonable choice for many servers. The upstream dependencies are not always sufficiently detailed and edits to the init files can be lost when upgrading. Your assumptions are wrong. You do not have to edit the init.d files themselves to

config files, ucf and dpkg (was: Re: The future of non-dependency-based boot)

2012-04-15 Thread Vincent Danjean
Le 15/04/2012 11:34, Petter Reinholdtsen a écrit : [James Cloos] Manually choosing the order remains a reasonable choice for many servers. The upstream dependencies are not always sufficiently detailed and edits to the init files can be lost when upgrading. Your assumptions are wrong.

Re: The future of non-dependency-based boot

2012-04-14 Thread Raphael Geissert
Goswin von Brederlow wrote: 3) Aborting the upgrade because dependency boot ordering fails will be a major issue for users. You already mentioned 2 issues and on my system at home I get an error about a dependency loop. Dependency based boot doesn't seem to be universally working enough yet.

Re: The future of non-dependency-based boot

2012-04-11 Thread Raphael Hertzog
On Wed, 11 Apr 2012, Brian May wrote: On 10 April 2012 16:06, Yves-Alexis Perez cor...@debian.org wrote: dpkg -l | awk '/^rc/ {print $2}' | xargs --no-run-if-empty dpkg --purge That's a pretty dangerous line. People (sometimes) don't purge packages for a reason, you might lose data here.

Re: The future of non-dependency-based boot

2012-04-11 Thread Thomas Goirand
On 04/11/2012 06:12 AM, Chris Knadle wrote: - if the init script left behind was part of a Debian package, deleting the init script means removing part of the configuration from the Debian pacakge, yet not purging the package it belongs to. This feels like something that would volate

Re: The future of non-dependency-based boot

2012-04-11 Thread Goswin von Brederlow
Roger Leigh rle...@codelibre.net writes: Hi, When dependency-based booting was introduced, it was initially entirely optional. We later made it the default, and encouraged users to switch to dependency-based boot on upgrade. So today, pretty much everyone will be using dependency-based

Re: The future of non-dependency-based boot

2012-04-11 Thread Roger Leigh
On Wed, Apr 11, 2012 at 12:13:09PM +0200, Goswin von Brederlow wrote: Roger Leigh rle...@codelibre.net writes: As a side note I have a use case at work where static order seems to be needed. We build boot images for network boot of clusters. During boot additional files can be copied from NFS

Re: The future of non-dependency-based boot

2012-04-11 Thread Sven Joachim
On 2012-04-11 12:13 +0200, Goswin von Brederlow wrote: 2) Static order is currently supported and supporting it for wheezy doesn't incurr horrible amounts of work. I beg to disagree, it is already unsupportable because the only way to test it is to set up a lenny system, create some local init

Re: The future of non-dependency-based boot

2012-04-11 Thread Chris Knadle
On Wednesday, April 11, 2012 05:14:34, Thomas Goirand wrote: On 04/11/2012 06:12 AM, Chris Knadle wrote: - if the init script left behind was part of a Debian package, deleting the init script means removing part of the configuration from the Debian pacakge, yet not purging the package it

Re: The future of non-dependency-based boot

2012-04-11 Thread Petter Reinholdtsen
[Sven Joachim] I beg to disagree, it is already unsupportable because the only way to test it is to set up a lenny system, create some local init script without LSB headers to prevent migration to dependency based boot, and then upgrade all the way to squeeze and wheezy. You can also install

Re: The future of non-dependency-based boot

2012-04-11 Thread Henrique de Moraes Holschuh
On Wed, 11 Apr 2012, Raphael Hertzog wrote: On Wed, 11 Apr 2012, Brian May wrote: On 10 April 2012 16:06, Yves-Alexis Perez cor...@debian.org wrote: dpkg -l | awk '/^rc/ {print $2}' | xargs --no-run-if-empty dpkg --purge That's a pretty dangerous line. People (sometimes) don't purge

Re: The future of non-dependency-based boot

2012-04-10 Thread Yves-Alexis Perez
On mar., 2012-04-10 at 01:03 +0200, Marco d'Itri wrote: Or just say in the release notes that it's a good idea to run something like this before upgrading: dpkg -l | awk '/^rc/ {print $2}' | xargs --no-run-if-empty dpkg --purge That's a pretty dangerous line. People (sometimes) don't purge

Re: The future of non-dependency-based boot

2012-04-10 Thread Thomas Goirand
On 04/10/2012 07:03 AM, Marco d'Itri wrote: On Apr 09, Roger Leigh rle...@codelibre.net wrote: majority, it's going to be increasingly untested. Do we want to continue to maintain something that will be increasingly unsupportable, or complete the migration cleanly before that point?

Re: The future of non-dependency-based boot

2012-04-10 Thread Jon Dowland
On 10/04/12 10:53, Thomas Goirand wrote: I wholeheartedly agree. I also agree that wheezy would be the correct moment to do it, and that we shouldn't wait until wheezy+1. I was hesitant to suggest that investing energy into improving the current init system, if it is likely to be wholesale

Re: The future of non-dependency-based boot

2012-04-10 Thread Moray Allan
On Tue, Apr 10, 2012 at 10:53 AM, Thomas Goirand z...@debian.org wrote: Considering that most (if not all) scripts would be user custom-scripts, I'd say that the best way would be to, just move them away on a special folder, and execute them one by one, without any particular order, and print

Re: The future of non-dependency-based boot

2012-04-10 Thread Moray Allan
On Tue, Apr 10, 2012 at 11:55 AM, Jon Dowland j...@debian.org wrote: I was hesitant to suggest that investing energy into improving the current init system, if it is likely to be wholesale replaced, might not be worthwhile (when that same energy could be put into hastening the inevitable).

Re: The future of non-dependency-based boot

2012-04-10 Thread Petter Reinholdtsen
[Moray Allan] With similar intention, I wondered about the possibility of running scripts without the LSB headers after everything else. (= implied dependency on those with LSB headers) The intention of the current implementation is to assume such scripts depend on $syslog and $remote_fs,

Re: The future of non-dependency-based boot

2012-04-10 Thread Adam Borowski
On Mon, Apr 09, 2012 at 10:26:38PM +0100, Roger Leigh wrote: Hi, When dependency-based booting was introduced, it was initially entirely optional. We later made it the default, and encouraged users to switch to dependency-based boot on upgrade. So today, pretty much everyone will be using

Re: The future of non-dependency-based boot

2012-04-10 Thread Petter Reinholdtsen
[Adam Borowski] Am I supposed to fetch a copy of initscripts and manually compare scripts it ships with those on 'dpkg -L initscripts'? Or is there some other obscure way? Try this one instead: dpkg-query -W -f='${Conffiles}\n' initscripts | grep obsolete -- Happy hacking Petter

Re: The future of non-dependency-based boot

2012-04-10 Thread Adam Borowski
On Tue, Apr 10, 2012 at 05:16:36PM +0200, Petter Reinholdtsen wrote: [Adam Borowski] Am I supposed to fetch a copy of initscripts and manually compare scripts it ships with those on 'dpkg -L initscripts'? Or is there some other obscure way? Try this one instead: dpkg-query -W

Re: The future of non-dependency-based boot

2012-04-10 Thread Steve Langasek
On Tue, Apr 10, 2012 at 02:27:35PM +0200, Petter Reinholdtsen wrote: As Debian should support init.d scripts as long as the Linux Software Base require it, I believe it is worth spending some time making sure init.d scripts work properly in Debian. The LSB requires support for LSB init

Re: The future of non-dependency-based boot

2012-04-10 Thread John D. Hendrickson and Sara Darnell
Who said LSB requires insserv ? verify this. Um ... LSB requires everything I write too ! :) Riight???! But innserv makes a good effort to be compatible - so that end should be ok. The LSB requires support for LSB init scripts; LSB init scripts have LSB -- To UNSUBSCRIBE, email to

Re: The future of non-dependency-based boot

2012-04-10 Thread Chris Knadle
On Tuesday, April 10, 2012 05:53:48 PM Thomas Goirand wrote: ... WRT actually doing this, the main issues I can see are I say just abort the upgrade and let root deal with the issues found, it's better than risking clobbering some local change. Considering that most (if not all)

Re: The future of non-dependency-based boot

2012-04-10 Thread Josh Triplett
Marco d'Itri wrote: On Apr 09, Roger Leigh rle...@codelibre.net wrote: majority, it's going to be increasingly untested. Do we want to continue to maintain something that will be increasingly unsupportable, or complete the migration cleanly before that point? Kill it. With fire. Yes

Re: The future of non-dependency-based boot

2012-04-10 Thread Tollef Fog Heen
]] Adam Borowski Could sysv-rc show this output upon a failure to migrate? Knowing you need to delete /etc/init.d/bootlogd, /etc/init.d/stop-bootlogd-single and /etc/init.d/stop-bootlogd would provide the user with straightforward info of what needs to be done. I think this should just be

Re: The future of non-dependency-based boot

2012-04-10 Thread Adam Borowski
On Tue, Apr 10, 2012 at 10:44:36PM +0200, Tollef Fog Heen wrote: ]] Adam Borowski Could sysv-rc show this output upon a failure to migrate? Knowing you need to delete /etc/init.d/bootlogd, /etc/init.d/stop-bootlogd-single and /etc/init.d/stop-bootlogd would provide the user with

Re: The future of non-dependency-based boot

2012-04-10 Thread Michael Biebl
On 10.04.2012 22:44, Tollef Fog Heen wrote: ]] Adam Borowski Could sysv-rc show this output upon a failure to migrate? Knowing you need to delete /etc/init.d/bootlogd, /etc/init.d/stop-bootlogd-single and /etc/init.d/stop-bootlogd would provide the user with straightforward info of what

Re: The future of non-dependency-based boot

2012-04-10 Thread Roger Leigh
On Wed, Apr 11, 2012 at 12:31:11AM +0200, Michael Biebl wrote: On 10.04.2012 22:44, Tollef Fog Heen wrote: ]] Adam Borowski Could sysv-rc show this output upon a failure to migrate? Knowing you need to delete /etc/init.d/bootlogd, /etc/init.d/stop-bootlogd-single and

Re: The future of non-dependency-based boot

2012-04-10 Thread Brian May
On 10 April 2012 16:06, Yves-Alexis Perez cor...@debian.org wrote: dpkg -l | awk '/^rc/ {print $2}' | xargs --no-run-if-empty dpkg --purge That's a pretty dangerous line. People (sometimes) don't purge packages for a reason, you might lose data here. Under some circumstances it can delete

The future of non-dependency-based boot

2012-04-09 Thread Roger Leigh
Hi, When dependency-based booting was introduced, it was initially entirely optional. We later made it the default, and encouraged users to switch to dependency-based boot on upgrade. So today, pretty much everyone will be using dependency-based boot with there being a minority continuing to

Re: The future of non-dependency-based boot

2012-04-09 Thread Marco d'Itri
On Apr 09, Roger Leigh rle...@codelibre.net wrote: majority, it's going to be increasingly untested. Do we want to continue to maintain something that will be increasingly unsupportable, or complete the migration cleanly before that point? Kill it. With fire. WRT actually doing this, the