tech-kern archive

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

Re: overriding RAIDframe disks as root disks with multiboot



On Sat, Oct 31, 2009 at 08:36:14PM +0100, Klaus Heinz wrote:
> Hi,
> 
> I would like to use the "root" option of the "multiboot" command in
> boot.cfg in order to specify which RAIDframe disk should be used as the
> root disk.
> 
> Unfortunately this does not work at the moment on NetBSD 5 and
> NetBSD-current. If the kernel config file does not specify the root disk
> at compile time, RAIDframe always takes precedence over everything else.
> 
> The appended patch changes this behaviour so that RAIDframe respects
> the multiboot command line.
> 
> Is my patch machine-independant, ie can I expect <machine/bootinfo.h>
> and "lookup_bootinfo(BTINFO_ROOTDEVICE)" to be available on all platforms?
> I am not sure whether this file, function and macro is considered part of
> the MI/MD interface; section 9 of the man pages does not mention the
> term "bootinfo".

It's MD. BTINFO_ROOTDEVICE only exists on x86, sandpoint and zaurus.
Also I'm not sure why you want this behavior. If you want to specify the
root filesystem on the command line, don't set raidctl -A root on
the raidframe device.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index