Loading mfsroot image from included 4th file

Christian Laursen xi at borderworlds.dk
Fri Feb 3 23:30:26 PST 2006


"Mars G. Miro" <marsgmiro at gmail.com> writes:

>> I am trying to add a custom command I can run from the loader to boot
>> the system with an mfsroot image, but my forth skills are somewhat
>> lacking.
>
>
> How about loading it from loader.conf?
>         % cat /boot/loader.conf
>         mfsroot_load="YES"
>         mfsroot_type="mfs_root"
>         mfsroot_name="/boot/mfsroot"

While that would certainly work, it wouldn't quite do what I want.

I only want to get the mfsroot loaded when I'm actually going to use it.
Otherwise I would have to unload it after boot in the normal case which
is far from elegant.

-- 
Christian Laursen


More information about the freebsd-hackers mailing list