[File-rc-users] Bug#684994: ifup: fails to open statefile, does not bring up the network

Thorsten Glaser tg at mirbsd.de
Sun Aug 19 13:35:05 UTC 2012


tags 684994 - unreproducible
severity 684994 grave
thanks


Alexander Wirt dixit:

>What let you think this is file-rc bug? I wasn't able to reproduce this
>problem on a fresh sid box. Neither with a dhcp nor a static network
>configuration.

I’ve got another box where I can reproduce this (didn’t try rebooting
it yet, LUCKILY as it’s a hosted domU), and it was an old(er) sid box
upgraded to newer sid. See below, too.


Piotr Borkowski dixit:

>On Thu, Aug 16, 2012 at 12:02:56PM +0200, Thorsten Glaser wrote:

>> The current sysvinit configuration (with file-rc) is as follows:
>>
>> tglase at tglase-nb:~ $ fgrep netw /etc/runlevel.conf
>> 35      -       0,6             /etc/init.d/networking
>>
>> Might this have something to do with the recent (IMHO not good)
>> decision of the file-rc people to switch to using insserv?

Note the other box has similar issue:

tg at zigo:~ $ fgrep network /etc/runlevel.*
/etc/runlevel.conf:35   -       0,6             /etc/init.d/networking
/etc/runlevel.fallback:35       -       0,6             /etc/init.d/networking
/etc/runlevel.fallback:40       -       S               /etc/init.d/networking

>If this is file-rc bug what returns these commands:
>/sbin/insserv -s 2>/dev/null|fgrep networking
>/usr/share/file-rc/insserv2file.sh 2>/dev/null|fgrep networking

Both do not return anything. But that’s no surprise really:

tg at zigo:~ $ dpkg -l insserv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                   Version          Architecture     Description
+++-======================-================-================-=================================================
un  insserv                <none>                            (no description available)

So this looks like a missing Depends (insserv is Prio: optional) and
thus is a grave bug. After manually installing it (of *course* it was
not installed previously, because file-rc allowed getting rid of it):

tg at zigo:~ $ /sbin/insserv -s 2>/dev/null | fgrep networking
K:05:0 6:networking
S:11:S:networking
tg at zigo:~ $ /usr/share/file-rc/insserv2file.sh 2>/dev/null | fgrep networking
05      0,6     -               /etc/init.d/networking
11      -       S               /etc/init.d/networking

So, now how do I get the /etc/runlevel.conf fixed “automagically”?
I mean, it broke automagically, after all.

bye,
//mirabilos
-- 
22:20⎜<asarch> The crazy that persists in his craziness becomes a master
22:21⎜<asarch> And the distance between the craziness and geniality is
only measured by the success 18:35⎜<asarch> "Psychotics are consistently
inconsistent. The essence of sanity is to be inconsistently inconsistent



More information about the File-rc-users mailing list