Commit e9046d1a authored by David Johnson's avatar David Johnson

Add exception for ppc64le bootloader detection in Linux slicefix.

(ppc64le OPAL-booted machines won't actually have a bootloader installed
in the first sector, so there is no magic to look for.)
parent 8a3e7a67
......@@ -1440,6 +1440,8 @@ sub main
my $label = get_label($root);
my $bootloader = guess_bootloader($root);
my $old_fstab_root = get_fstab_root($imageroot);
my $arch = `uname -m`;
# HACK: there's no simple way to distinguish grub2 from grub
# by the boot sector.
......@@ -1448,6 +1450,12 @@ sub main
-f "$imageroot/boot/grub/grub.cfg")) {
$bootloader = 'grub2';
# ppc64le systems can boot via OPAL/petitboot kexec, so a
# bootloader may not be installed in the partition.
elsif (!$bootloader && $arch eq 'ppc64le'
&& -f "$imageroot/boot/grub/grub.cfg") {
$bootloader = 'grub2';
if ($bootloader eq 'lilo') {
($lilo_default, $kernel, $cmdline, $initrd) =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment