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

sparky at pld-linux.org sparky at pld-linux.org
Tue Sep 19 08:50:30 EST 2006


On Mon, Sep 18, 2006 at 05:07:15PM -0500, Dustin Kirkland wrote:

> - 1/2: In userspace, extend ybin to understand a --bootonce parameter,
> which takes a bootloader entry label.  If this is an existing, valid
> label in the bootloader configuration file, perform a raw write of that
> value to an empty block in the PReP boot partition.

Isn't it easier/better to save that information in NVRAM ? Or am I
missing something (maybe nvram is mac-specific) ?

It's quite easy to use nvram-stored variables from OpenFirmware, and on
linux site 'nvsetenv' tool would need to be extended to be able to
create new variables (only when used with --create flag).
I had to write some patch for nvsetenv, because I need such funcionality
but I wrote really simple perl script instead.

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org



More information about the Yaboot-devel mailing list