Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2006 13:15:38 +0800
From:      "Mars G. Miro" <marsgmiro@gmail.com>
To:        Christian Laursen <xi@borderworlds.dk>, freebsd-hackers@freebsd.org
Subject:   Re: Loading mfsroot image from included 4th file
Message-ID:  <28edec3c0602032115i206256c6w6d3bbe8335fb72c6@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> 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=3D"YES"
        mfsroot_type=3D"mfs_root"
        mfsroot_name=3D"/boot/mfsroot"


> So far I have the following contained in a file called
> /boot/imageloader.4th which I include from loader.rc:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> marker task-imageloader.4th

> : update
>         ." Loading updater mfsroot..." cr
> \ Load mfsroot here
>         s" ufs:md0a" s" vfs.root.mountfrom" setenv
>         0 boot
> ;
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

> I am however unsure of the code to load the actual mfsroot image.

> If I run the following two commands manually I get the intended result:
> OK load -t mfs_root /boot/mfsroot
> OK update

> Any hints would be greatly appreciated.

> Thanks.

> --
> Christian Laursen


cheers
mars



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28edec3c0602032115i206256c6w6d3bbe8335fb72c6>