Subject: Re: Selection of the root partition
To: Matthias Scheler <tron@zhadum.org.uk>
From: Michael Lorenz <macallan@netbsd.org>
List: tech-kern
Date: 04/22/2007 17:46:52
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Apr 22, 2007, at 17:27, Matthias Scheler 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?
On OF machines the firmware tells us where it loaded the kernel from as 
a device path, we grab that and compare when disks attach, via 
device_register(). Grossly simplified but that's how it works.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRivXzMpnzkX8Yg2nAQLTJAgAp0xnl26aPWQSTgS0sVwn0e/IF68YwiJm
EXFAzVOolSTtQISVunvDpyfpP93ESuBKP8Zvp8g9vDVQhaqjwptC4Iri+/lEUOBC
7vDPEm2scIBuIdujk3Zxa6VaQNit++F6m2bOogoYTbhX1ryykcQMF8I+PvekIL7N
qW+btadya3FBNz3sMUq4F1SK7iAViB0lAc7pkAAAFQaHJY+aAwGkMEHDPglTcgvc
1tTFvhOQp/ma3ls+kkAduzTTgpQLaMFB1ilO4hg7K7KoBxvV0j+ZRJoundZqsEV+
7qEn1s440vo95110hFGVAByvflx1dGieSEtzOt9I+dR8oV7XWl+tPg==
=1/OM
-----END PGP SIGNATURE-----