Re: Switching the default startup method
Luk Claes schrieb am Monday, den 24. August 2009:
> Why would file-rc not work properly with dependency based booting?
you know what file-rc is doing? You have a configfile where you list your
services and the bootlevels. So we have a configfile here. I would have to
reorder the whole file for dependency based booting, but how can I do this
reliable? And even if I would be able to do this, this would mean to change a
user configuration file which is against policy.
> You might want to look if insserv overrides can help.
> What is broken with the usage of update-rc.d or the debconf switch?
a) in my eyes low is the wrong priority as it changes vital system setting
without further notice. Also a NEWS item would be useful. Another problem is
that the changes are not revertible.
apt-get install file-rc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
The following NEW packages will be installed:
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
sysv-rc (due to sysvinit)
0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded.
Need to get 36.6kB of archives.
After this operation, 373kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?] Yes, do as I say!
Get:1 http://127.0.0.1 sid/main file-rc 0.8.11 [36.6kB]
Fetched 36.6kB in 0s (194kB/s)
(Reading database ... 14880 files and directories currently installed.)
Removing insserv ...
error: insserv must be disabled before it is removed, to
error: make sure the boot system is still usable.
error: To disable, run dpkg-reconfigure insserv
dpkg: error processing insserv (--remove):
subprocess installed pre-removal script returned error exit status 1
dpkg: sysv-rc: dependency problems, but removing anyway as you requested:
insserv depends on sysv-rc.
sysvinit depends on sysv-rc | file-rc; however:
Package sysv-rc is to be removed.
Package file-rc is not installed.
Removing sysv-rc ...
Processing triggers for man-db ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1
- ok there we are...
info: Disabling dependency based boot system
mv: cannot stat `/usr/sbin/update-rc.d.distrib': No such file or directory
This is the point where I say its broken. I would have to reinstall sysv-rc. Do a
dpkg-reconfigure insserv and after that try the install of file-rc again. Hey this really
can't be the way.
P.S. I'm not against insserv and file-rc per se. But the way its done is wrong. There are so many
ways updates can break and just making insserv quasi essential without further notice and/or chance to
stop the conversion is not correct in my eyes, especially if you can't revert the change.
Also I want to have the freedom to get rid of it if I want.
I hope my points are getting clearer now.