Subject: Re: Selection of the root partition
To: None <tech-kern@NetBSD.org>
From: Matthias Scheler <tron@zhadum.org.uk>
List: tech-kern
Date: 04/23/2007 13:07:38
On Sun, Apr 22, 2007 at 05:46:52PM -0400, Michael Lorenz wrote:
> >can somebody please explain me where and how the root partition is
> >selected in the NetBSD kernel? I'm especially interested in the i386 
> >port.
> Especially or only?

Mostly. :-)

> On OF machines the firmware tells us where it loaded the kernel from as 
> a device path,


It's nice if you have a decent firmware, isn't it?

> ... we grab that and compare when disks attach, via 
> device_register(). Grossly simplified but that's how it works.

That sounds similar to what NetBSD-sparc64 is doing.

	Kind regards

-- 
Matthias Scheler                                  http://zhadum.org.uk/