save_boot_device: do not indent non-template code

Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
restore_boot_device: use nvram instead of nvsetenv

nvsetenv is an add-on utility provided by distributions (that is, not
directly provided by powerpc-utils), so it is better to rely on the more
standard nvram command.

Signed-off-by: Tomo Berry <tbberry@us.ibm.com>
Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Ubuntu: save/restore boot order on ppc64el

Ubuntu is like RH and SUSE in that it overwrites the boot order upon
installation. This affects automated testing as we can't simply power
cycle the machine to netboot as expected. Add support to the snippets
for saving/restoring the boot the boot device list via the nvram
command.  Additionally, add a non-chrooted script to autoinstall_scripts
and run that in the target system, but outside of /target. This is
necessary so we have access to the same data as in the early script.

Signed-off-by: Tomo Berry <tbberry@us.ibm.com>
Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Merge pull request #1361 from nacc/ubuntu_bootorder

Ubuntu: fix bootorder on ppc64el