loader.conf from loader prompt
Ian Lepore
ian at freebsd.org
Thu Dec 29 19:18:18 UTC 2016
On Thu, 2016-12-29 at 17:53 +0300, Slawa Olhovchenkov wrote:
> On Thu, Dec 29, 2016 at 08:40:57AM -0600, Mark Felder wrote:
>
> >
> >
> >
> > On Thu, Dec 29, 2016, at 05:43, Slawa Olhovchenkov wrote:
> > >
> > > I am need set/unset some values (from loader.conf) from loader
> > > prompt.
> > > Or add content of some file to loader.conf from loader prompt.
> > > Or interactivly enable/disable some lines from loader.conf
> > >
> > > Is this posible?
> > >
> > Yes. Check the loader(8) man page or the "help" command at the
> > loader
> > prompt.
> Already did, don't help.
>
> For example, what I need enter in loader prompt for next equalent:
> ==
> mfsroot_load="YES"
> mfsroot_type="md_image"
> mfsroot_name="/boot/md.img"
> ==
>
> set mfsroot_load="YES"
> set mfsroot_type="md_image"
> set mfsroot_name="/boot/md.img"
> boot
>
> don't work.
>
> `load -t md_image /boot/md.img` can't be before kernel load.
>
> What I am missing?
>
I don't know of an easy way to do this... it seems like it should be
possible to make the forth interpreter read and act on another config
file by entering some command at the prompt, but I see nothing about
that in the docs, and I've never been able to read forth code.
To do it the hard way, first do "load kernel" then do the "load -t
md_image" as you show above, then you should be able to do "boot" and
have it load any other foo_load=YES modules and start.
-- Ian
More information about the freebsd-hackers
mailing list