Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61594 - [PATCH] /sbin/rc brings down net.eth0 by mistake after initial runlevel
Summary: [PATCH] /sbin/rc brings down net.eth0 by mistake after initial runlevel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-08-24 20:34 UTC by Andreas Sundebo
Modified: 2004-12-17 02:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rc-dep_stop-fix.diff (rc-dep_stop-fix.diff,403 bytes, patch)
2004-08-24 20:35 UTC, Andreas Sundebo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sundebo 2004-08-24 20:34:12 UTC
If I autoload a network module in /etc/modules.autoload.d/kernel-2.6 and hotplug starts the service, /sbin/rc will try to stop it, because it sees net.eth0 in as a 'started' service which apparently noone uses.

This is due to a bug in the dep_stop function in /sbin/rc, see the patch below which fixes it.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Andreas Sundebo 2004-08-24 20:35:52 UTC
Created attachment 38140 [details, diff]
rc-dep_stop-fix.diff
Comment 2 Michael Kefeder 2004-09-25 06:15:26 UTC
I can confirm this behaviour. I run kernel 2.6, hotplug and use /etc/modules.autoload.d/kernel-2.6 for my NICs driver. It's quite frustrating when you have cifs and nfs mountpoints in fstab and the network doesn't come up while booting... After I applied this patch, network starts and works as expected.

Andreas - thanks for figuring this out, i never would have found out that /sbin/rc causes the trouble.
Comment 3 Paolo Ornati 2004-12-05 01:22:07 UTC
I can confirm this behaviour, the patch _FIXES_ the problem also for me.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2004-12-09 10:13:35 UTC
Fixed in CVS - will be in baselayout-1.11.8
Comment 5 Roy Marples (RETIRED) gentoo-dev 2004-12-17 02:33:48 UTC
Baselayout-1.11.8 is out