Bug 1218783 - grub: Should Remove magic number header field check on aarch64
Summary: grub: Should Remove magic number header field check on aarch64
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Bootloader (show other bugs)
Version: Current
Hardware: aarch64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bootloader Maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-13 13:52 UTC by W
Modified: 2024-05-17 09:10 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description W 2024-01-13 13:52:13 UTC
I want to boot up alpine linux from openSUSE Tumbleweed aarch64 grub.efi but failed.

Files are:
https://download.opensuse.org/ports/aarch64/tumbleweed/repo/oss/EFI/BOOT/grub.efi
https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/aarch64/netboot/vmlinuz-virt
https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/aarch64/netboot/initramfs-virt

```
menuentry "alpine" {
    search --no-floppy --file --set=root /vmlinuz-virt
    linux /vmlinuz-virt alpine_repo=http://dl-cdn.alpinelinux.org/alpine/v3.19/main modloop=http://dl-cdn.alpinelinux.org/alpine/v3.19/releases/aarch64/netboot/modloop-virt
    initrd /initramfs-virt
}
```

grub shows:
```
error: ../../grub-core/loader/arm64/efi/linux.c:61:invalid magic number.
error: ../../grub-core/loader/arm64/efi/linux.c:302:you need to load the kernel
first.

Press any key to continue...
```

Reference:
The magic number header field check on aarch64 has remove on grub 2.12.
I think openSUSE should follow up.
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=69edb31205602c29293a8c6e67363bba2a4a1e66
https://git.savannah.gnu.org/cgit/grub.git/commit/?id=067bd35cd420034a068f5951947e6470533d1d48
Comment 1 Michael Chang 2024-01-29 08:16:45 UTC
Hello,

The patch removing the magic number check has been submitted to openSUSE:Factory and will be released in a few days.

https://build.opensuse.org/request/show/1142178

It has also been verified by the alpine kernel and initrd link in the Description.

Set the resolution to fixed, feel free to reopen if it doesn't work after updating to the released package.