Bug 2000756

Summary: error: ../../grub-core/loader/arm64/linux.c:326:Invalid PE optional header magic.
Product: [Fedora] Fedora Reporter: Paul Whalen <pwhalen>
Component: grub2Assignee: Javier Martinez Canillas <fmartine>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: awilliam, fmartine, lkundrak, pbrobinson, pgnet.dev, pjones, rharwood, robatino
Target Milestone: ---   
Target Release: ---   
Hardware: armhfp   
OS: Linux   
Whiteboard: AcceptedBlocker
Fixed In Version: grub2-2.06-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-20 19:54:50 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: 245418, 1891953    

Description Paul Whalen 2021-09-02 19:58:41 UTC
Description of problem:

After updating to grub2-2.06-4.fc35 on armhfp, system fails to boot with the error:

error: ../../grub-core/loader/arm64/linux.c:326:Invalid PE optional header
magic.
error: ../../grub-core/loader/arm64/linux.c:279:you need to load the kernel
first.

Press any key to continue...


Version-Release number of selected component (if applicable):
grub2-2.06-4.fc35

How reproducible:
Always. 

Steps to Reproduce:
1. Boot a f35 armhfp disk image
2. Update to grub2-2.06-4.fc35, reboot

Comment 1 Fedora Update System 2021-09-10 14:59:16 UTC
FEDORA-2021-51f205d5af has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-51f205d5af

Comment 2 Fedora Update System 2021-09-10 14:59:19 UTC
FEDORA-2021-51f205d5af has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-51f205d5af

Comment 3 Fedora Update System 2021-09-10 22:11:08 UTC
FEDORA-2021-51f205d5af has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-51f205d5af`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-51f205d5af

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Blocker Bugs Application 2021-09-19 15:12:31 UTC
Proposed as a Blocker for 35-beta by Fedora user pbrobinson using the blocker tracking app because:

 grub2 revision 4 fixed some issues on aarch64 and power64le but regressed on armhfp, revision 5 fixed the armhfp issues. It would be useful to get this build in for beta to clean up those issues with grub 2.06 on those arches.

````
* Thu Sep 09 2021 Peter Jones <pjones> - 2.06-5
- Fix the 32-bit Arm PE header magic check
  Resolves: rhbz#2000756

* Tue Aug 24 2021 Peter Jones <pjones> - 2.06-4
- Fix aarch64 kernel alignment.
- Fix annobin regexp on ppc64le
````

Comment 5 Adam Williamson 2021-09-20 15:05:20 UTC
+4 in https://pagure.io/fedora-qa/blocker-review/issue/464 , marking accepted.

Comment 6 Fedora Update System 2021-09-20 19:54:50 UTC
FEDORA-2021-51f205d5af has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.