Loader forth changes for customization
rank1seeker at gmail.com
rank1seeker at gmail.com
Thu Nov 14 08:36:53 UTC 2013
> > Um,
> >
> > Little of thread, but could you rewrite loader in just 1 task?
> > That is, once it has been pulled by STAGE 2 boot, ALL loader's path
should be RELATIVE to loader itself, instead currently using full path
approach (/boot/...)
> >
> > I.e;
> > Line: (from: '/sys/boot/common/interp.c')
> > include("/boot/boot.conf");
> > into:
> > include("boot.conf");
> > and so on ...
> >
> > Thanks.
> >
>
> Is that true for the Forth layer? I didn't think there was a relative
path.
> Just tested on 9.2-R loader(8):
>
> Contents of /boot/loader.rc.local:
> echo "Hello, World!"
>
> At loader(8) prompt:
> OK include /boot/loader.rc.local
> Hello, World!
> OK include loader.rc.local
> can't open 'loader.rc.local': no such file or directory
>
> --
> Devin
No no. Loader's prompt, where you type CMD's ... is out of context.
Normal loader's boot sequence should work with paths relative to loader
binary itself.
I.e; Upon boot it would pull 'defaults/loader.conf' as it is relative to
it, instead via current full path '/boot/defaults/loader.conf'
This isn't a current behaviour, but something that should be done.
Domagoj
More information about the freebsd-hackers
mailing list