Bug 1782919

Summary: Don't install bootloader binaries on petitboot-based Power systems
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, bugproxy, dan, jkonecny, jonathan, kellin, normand, vanmeeuwen+fedora, vponcova, vslavik, wwoods
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-17 14:13:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880    

Description Adam Williamson 2019-12-12 16:17:52 UTC
This bug is a continuation of https://bugzilla.redhat.com/show_bug.cgi?id=1303219#c4 onwards. As explained there:

"POWER/OpenPOWER machines running the OPAL firmware create a new class of "powerpc" hardware that doesn't need the PReP partition as it uses petitboot as the bootloader. Petitboot reads bootloader configs (eg. grub.conf) from the disks directly. Both physical HW and qemu/KVM virtual machines (work in progress) can be PowerNV. The advantages are more flexible storage layout and being closer to x86."

The basic support has been implemented in https://github.com/storaged-project/blivet/pull/782 and https://github.com/rhinstaller/anaconda/pull/2025 , but Danny says:

"In addition to these we need to loosen the grub-install requirement for the bootloader partition, or rather not do install any grub binaries on PowerNV...My experiment shows, that the actual bootloader binaries are really not required, but we need grubby plus its dependencies (grub2-{common,tools}) to refresh grub.conf on kernel installs/removals."

This bug is to cover that: when installing to a petitboot-based Power system, don't install grub binaries, but do install grubby and grub2-{common,tools}.

Comment 1 Michel Normand 2021-03-09 17:02:26 UTC
Hello Dan, do you know who is supposed to work on the above ?

Comment 2 Dan Horák 2021-03-10 08:29:26 UTC
Hi Michel, I think no one is working on this right now, but I don't know for sure whether this part hasn't already been fixed. Probably not yet. It might be as simple as overriding "packages" (https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/storage/bootloader/grub2.py#L103) in the PowerNVGrub2 class ...

Comment 3 IBM Bug Proxy 2023-10-12 13:51:57 UTC
------- Comment From viparash.com 2023-10-12 09:42 EDT-------
Pretty old bug with no updates for more than
a year. Closing.

Comment 4 Vladimír Slávik 2023-10-17 14:13:23 UTC
It didn't close the bug though... so doing that.