NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/46732: setroot(9) is called twice after "MI root on wedges" changes



>Number:         46732
>Category:       kern
>Synopsis:       setroot(9) is called twice after "MI root on wedges" changes
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 21 18:00:00 +0000 2012
>Originator:     Izumi Tsutsui
>Release:        NetBSD 6.0_BETA2
>Organization:
>Environment:
System: NetBSD 6.0_BETA2 from NetBSD-daily/netbsd-6/201207180120Z
Architecture: i386
Machine: i386
>Description:
After "make detection of root on wedges machine independent" changes,
 http://mail-index.NetBSD.org/source-changes/2012/06/10/msg034894.html
 http://cvsweb.NetBSD.org/bsdweb.cgi/src/sys/kern/init_main.c#rev1.443
 (these changes have been pulled up to netbsd-6)
setroot() is called twice on most ports.

It is called first from MD cpu_rootconf(),
(in sys/arch/x86/x86/x86_autoconf.c for example)
and called again from MI rootconf() in init_main.c,
so kernel prints "root on xxNa dumps on xxNb" twice:
---
 :

Kernelized RAIDframe activated
boot device: wd0
root on wd0a dumps on wd0b
root on wd0a dumps on wd0b
root file system type: ffs
clock: unknown CMOS layout
---

and it's actually annoying in RB_ASKNAME case:
---
 :

Kernelized RAIDframe activated
boot device: wd0
root device (default wd0a): 
dump device (default wd0b): 
file system (default generic): 
root on wd0a dumps on wd0b
root device (default wd0a): 
dump device (default wd0b): 
file system (default generic): 
root on wd0a dumps on wd0b
root file system type: ffs
clock: unknown CMOS layout
init path (default /sbin/init): 
init: trying /sbin/init
---

>How-To-Repeat:
Boot GENERIC kernel (also try boot with -a (RB_ASKNAME)).
At least it happens on i386 and luna68k.

>Fix:
No idea.
Remove setroot() calls in MD cpu_rootconf() or MI rootconf()?



Home | Main Index | Thread Index | Old Index