]> git.ozlabs.org Git - yaboot.git/commit
Save arguments as well as image name for CAS reboot
authorPaul Mackerras <paulus@samba.org>
Thu, 13 Oct 2011 18:01:12 +0000 (18:01 +0000)
committerTony Breeds <tony@bakeyournoodle.com>
Tue, 18 Oct 2011 04:11:10 +0000 (15:11 +1100)
commit52ad93077e5334581d05ade8e55575573b98087e
tree973e5bd72aaa09bc3ba155683d6d2e42044a72fe
parent7822500e80ce7b25925974b63fa525197c68a434
Save arguments as well as image name for CAS reboot

We were saving the image name that the user had typed (or had been
selected by default) in the "boot-last-label" property, but we were
losing any extra arguments that the user had typed after the image
name.  On a pSeries machine, if the firmware decides to do a reboot
at the client-architecture-support call, we were then rebooting to
the right image but without any extra arguments that the user typed.

This fixes the problem by saving the arguments in boot-last-label,
separated from the image name by a space.  When we use the value
of boot-last-label, we now call word_split to separate it into the
image name and arguments again.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
second/yaboot.c