tech-embed archive

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

md as root and RB_ASKNAME



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




Home | Main Index | Thread Index | Old Index