[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Boot partition
On Wed, Jul 02, 2014 at 09:42:01PM +0100, Sad Clouds wrote:
> What's the best way to tell booting kernel where root file system is
> located? Can this be done dynamically or do I need to recompile kernel?
You hit an itching spot. Currently the easiest way is to put ofwboot and
the kernel into the boot partition and create a custom kernel with
config netbsd root on wd0a
in the config file.
The right solution (after Tyler has commited his boot.cfg parsing unification)
would be to allow overriding of the root filesystem in boot.cfg. Also
it should be possible (not right now, but after that commit and a few MD
adjustement) to put "boot wd0a" into boot.cfg and just place boot.cfg and
ofwboot inside the boot partition.
A very similar issue happens on bootable CDs, where firmware always boots from
the :f partition, and we override this in boot.cfg to switch to :a.
Main Index |
Thread Index |