> 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"


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

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

> 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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to