Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76385 - net.lo doesnt handle non-existing interfaces nicely
Summary: net.lo doesnt handle non-existing interfaces nicely
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-01-02 00:50 UTC by SpanKY
Modified: 2005-01-31 00:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2005-01-02 00:50:17 UTC
i removed my 2nd network card to install a diff one and the old kernel didnt have the driver ... so when eth1 tried to startup, i saw this:

 * Starting eth1
 *    Bringing up eth1
 *       192.168.1.4
eth1: error fetching interface information: Device not found           [ ok ]

looking into it, net.lo has this little code in run_start():
    ! interface_exists ${iface} && /sbin/modprobe ${iface} &>/dev/null

the modprobe return should be checked ... if the interface doesnt exist, and modprobe failed to do anything useful, we should bail instead of trundling on

perhaps:
    if ! interface_exists ${iface} ; then
        if ! /sbin/modprobe ${iface} &>/dev/null ; then
            eerror "${iface} does not exist :("
            return 1
        if
    fi
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-01-07 07:24:50 UTC
In CVS - will be in baselayout-1.11.9
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-31 00:01:35 UTC
Fixed by baselayout-1.11.9