Subject: md as root and RB_ASKNAME
To: None <tech-embed@netbsd.org>
From: Jared Momose <jpmomose@hotmail.com>
List: tech-embed
Date: 12/19/2003 18:11:49
When md is used as the root device, the kernel always prompts the console 
user to specify a root device. This is a bit annoying as it prevents the 
kernel from booting completely without user interaction.

This problem occurs because the RB_ASKNAME flag for boothowto is set when 
the function finddevice:kern_subr.c fails to find the correct device. My 
solution was to add a small section of code in kern_subr.c that, if the 
kernel option MEMORY_DISK_IS_ROOT is set, will allow finddevice:kern_subr.c 
to search the list of md devices (fakemdrootdev) for a match before it 
searches the list of auto detected devices (alldevs). This change is nearly 
identitical to that made for RAID.

Has anyone solved this problem in a different way?

jared.

_________________________________________________________________
Working moms: Find helpful tips here on managing kids, home, work —  and 
yourself.   http://special.msn.com/msnbc/workingmom.armx