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

Alexander Wirt formorer at debian.org
Sun Aug 19 14:31:28 UTC 2012


On Sun, 19 Aug 2012, Thorsten Glaser wrote:

> 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):
Ah, this is some kind of an upgrade bug and won't happen often. I'll upload a
new version in the evening when its colder.

> 
> 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.
`update-rc.d networking defaults` should do the trick.

Alex



More information about the File-rc-users mailing list