diff --git a/pyanaconda/bootloader/__init__.py b/pyanaconda/bootloader/__init__.py index acbb0aeb343..f2d56d7bb8d 100644 --- a/pyanaconda/bootloader/__init__.py +++ b/pyanaconda/bootloader/__init__.py @@ -61,8 +61,8 @@ def get_bootloader_class(platform_class=None): return IPSeriesGRUB2 if platform_class is platform.PowerNV: - from pyanaconda.bootloader.grub2 import GRUB2 - return GRUB2 + from pyanaconda.bootloader.grub2 import PowerNVGRUB2 + return PowerNVGRUB2 if platform_class is platform.S390: from pyanaconda.bootloader.zipl import ZIPL diff --git a/pyanaconda/bootloader/grub2.py b/pyanaconda/bootloader/grub2.py index 600d2c0cec4..77402e59e3d 100644 --- a/pyanaconda/bootloader/grub2.py +++ b/pyanaconda/bootloader/grub2.py @@ -614,3 +614,14 @@ def write_defaults(self): # PowerVM / POWER on qemu/kvm defaults.write("GRUB_DISABLE_OS_PROBER=true\n") defaults.close() + +class PowerNVGRUB2(GRUB2): + """PowerNV GRUBv2""" + + # + # installation should be a no-op, just writing the config is sufficient for the + # firmware's bootloader (petitboot) + # + + def install(self, args=None): + pass