grub2-install parm set to /dev/vda1 for PowerPC

Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
This commit is contained in:
Michel Normand 2019-03-08 19:17:35 +01:00 committed by adamwill
parent 58d6dbb5e6
commit ff3768b1d0

View File

@ -17,7 +17,8 @@ sub run {
# in openQA: x86_64, ppc64le, and aarch64. # in openQA: x86_64, ppc64le, and aarch64.
assert_script_run "dracut -f"; assert_script_run "dracut -f";
assert_script_run 'grub2-mkconfig -o $(readlink -m /etc/grub2.cfg)'; assert_script_run 'grub2-mkconfig -o $(readlink -m /etc/grub2.cfg)';
assert_script_run "grub2-install /dev/vda" unless (get_var("UEFI")); my $instdev = get_var("OFW") ? '/dev/vda1' : '/dev/vda';
assert_script_run "grub2-install $instdev" unless (get_var("UEFI"));
} }
# reboot, in case any of the updates need a reboot to apply # reboot, in case any of the updates need a reboot to apply
script_run "reboot", 0; script_run "reboot", 0;