]> git.ozlabs.org Git - yaboot.git/commit
read boot-once, zero out, set bootoncelabel as default
authorPaul Nasrat <pnasrat@redhat.com>
Thu, 19 Apr 2007 09:12:22 +0000 (10:12 +0100)
committerPaul Nasrat <pauln@enki.eridu>
Thu, 19 Apr 2007 09:12:22 +0000 (10:12 +0100)
commit320a30ef3761980800710b9d8352229c53c36a43
treeee3d0b34ea5109d76bb41a95d626d3d7a1f5cf1c
parent5d4289bddaef010cc14bcbeecfd13d5068b50a8e
read boot-once, zero out, set bootoncelabel as default

This patch reads the boot-once environment variable from Open Firmware
and stores in a global variable, "bootoncelabel".

It then unconditionally zeros out the boot-once environment variable.

*** Note that according to 1275, setprop will create a specified
environment variable if it doesn't already exist.  A bug in nvsetenv
causes it to fail silently if you try to set an OF environment variable
that does not already exist.  However, simply booting a system running a
yaboot with this patch set compiled in will in fact create the boot-once
environment variable, which nvsetenv can later set and reset.

Signed-off-by: Dustin Kirkland <dustin.kirkland@us.ibm.com>
second/yaboot.c