[PATCH] 0/2 RFC: yaboot --bootonce

Paul Nasrat pnasrat at redhat.com
Tue Jan 9 22:24:20 EST 2007


On Mon, 2007-01-08 at 13:58 -0600, Dustin Kirkland wrote:
> On Mon, 2007-01-08 at 09:48 -0800, Judith Lebzelter wrote:
> > This patch set (described below) was put out in September, but there
> > were a few unanswered questions.  I was wondering whether this feature
> > had made any progress as I would find it very useful.
> 
> Hi Judith-
> 
> Actually, at this point, all I really need is for someone to show me two
> things, which is potentially very easy to an OpenFirmware-savvy yaboot
> developer...
> 
> 1) How to read an OF environment variable/flag within the context of
> yaboot's execution

See prom_get_options in yaboot prom.c. 

> 2) How to clear/reset that same environment variable/flag within the
> context of yaboot's execution

We'd need a prom_set_options using setprop as described in the client
interface.  I'll try whip up a quick by the end of the week.  I don't
think you can delete the variable based on my reading of setprop and
setenv (user interface equivalent) so you probably want to check for
existence then value (probably making it a boolean ala auto-boot? and
others).

Paul




More information about the Yaboot-devel mailing list