Subject: kern/32911: root query offers non-attached network interfaces
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 02/23/2006 09:20:00
>Number:         32911
>Category:       kern
>Synopsis:       root query offers non-attached network interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 23 09:20:00 +0000 2006
>Originator:     Martin Husemann
>Release:        NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD cube.duskware.de 3.99.15 NetBSD 3.99.15 (MTX-1) #0: Thu Feb 23 09:12:23 CET 2006 martin@night-porter.duskware.de:/usr/src/sys/arch/evbmips/compile/MTX-1 evbmips
Architecture: mipsel
Machine: evbmips
>Description:
When booting with -a (or for other reasons) the kernel prompts for a root
file system device. It offers a list of devices available, but this list
is sometimes not correct.

In my case, a wi0 device fails to attach (for unrelated reasons):

wi0 at pci0 dev 0 function 0: can't map mem space

But still the kernel later offers to mount root via wi0:

root device:
use one of: aumac0 aumac1 wi0 ddb halt reboot
root device: aumac0

while the system, when up, does not list wi0 as an interface with ifconfig -a:

aumac0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:0e:56:00:02:2c
        media: Ethernet autoselect (10baseT)
        status: active
        inet 192.168.150.148 netmask 0xffffff00 broadcast 192.168.150.255
aumac1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        address: 00:0e:56:00:12:2c
        media: Ethernet none (none)
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33176
        inet 127.0.0.1 netmask 0xff000000


>How-To-Repeat:
s/a
>Fix:
n/a