Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2243060

Summary: grub2-2.06-103 breaks dtb file installation
Product: [Fedora] Fedora Reporter: Hector Martin <marcan>
Component: grub2Assignee: Nicolas Frayer <nfrayer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 39CC: asahi-sig, awilliam, davide, dennis, fmartine, janne-fdr, lkundrak, mlewando, nfrayer, ngompa13, pbrobinson, pjones, pwhalen, robatino
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: grub2-2.06-104.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-03 18:35:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
trivial fix adding '-r' at the place which copies 'dtb/' on aarch64 none

Description Hector Martin 2023-10-10 14:00:29 UTC
Broken commit:

https://src.fedoraproject.org/rpms/grub2/c/8800efcb0bea5750f77f88a05ac9211a19cbc7a0?branch=rawhide

`cp -a` implies recursive copy. `dtb` is a directory. The new command fails to copy device trees, since it is no longer recursive.

```
sudo /bin/kernel-install add 6.5.6-400.asahi.fc39.aarch64+16k /lib/modules/6.5.6-400.asahi.fc39.aarch64+16k/vmlinuz
cp: -r not specified; omitting directory '/usr/lib/modules/6.5.6-400.asahi.fc39.aarch64+16k/dtb'
restorecon: lstat(/boot/dtb-6.5.6-400.asahi.fc39.aarch64+16k) failed: No such file or directory
```

This is actively breaking new kernel installation and bootloader dtb updates on Fedora Asahi, which means we can't push new kernels until it's fixed. It is also likely breaking our image autobuilds.

Reproducible: Always

Comment 1 Fedora Blocker Bugs Application 2023-10-10 14:06:02 UTC
Proposed as a Blocker for 39-final by Fedora user ngompa using the blocker tracking app because:

 This violates the criterion of "No broken packages" because it results in systems that no longer correctly boot, particularly on AArch64 where DeviceTree is used instead of UEFI.

Comment 2 Davide Cavalca 2023-10-10 18:20:22 UTC
I can confirm this is actively breaking Fedora Asahi Remix builds for rawhide:

+ update-m1n1 /boot/efi/m1n1/boot.bin
Reading m1n1 config from /etc/m1n1.conf:
cat: '/boot/dtb/apple/*': No such file or directory

Comment 3 Janne Grunau 2023-10-10 18:56:20 UTC
Created attachment 1993334 [details]
trivial fix adding '-r' at the place which copies 'dtb/' on aarch64

Comment 4 Janne Grunau 2023-10-10 19:08:18 UTC
also opened as PR in https://src.fedoraproject.org/rpms/grub2/pull-request/32

Comment 5 Adam Williamson 2023-10-10 19:35:42 UTC
The broken version is not stable, and I've unpushed the update. It does not fix any blocker or FE bug, so it is not in line to go through the freeze. So this cannot really be a blocker, because the bug isn't actually in F39 stable. Unproposing.

Comment 6 Fedora Update System 2023-10-11 11:37:22 UTC
FEDORA-2023-f46483e5b5 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f46483e5b5

Comment 7 Adam Williamson 2023-10-11 18:23:00 UTC
*** Bug 2243263 has been marked as a duplicate of this bug. ***

Comment 8 Adam Williamson 2023-10-12 00:16:26 UTC
sigh, duping Dennis' bug made this one get re-proposed as a blocker. again, it does not need to be one, as the update that broke this never made stable.

Comment 9 Fedora Update System 2023-10-12 02:24:16 UTC
FEDORA-2023-f46483e5b5 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f46483e5b5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f46483e5b5

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

Comment 10 Fedora Update System 2023-11-03 18:35:19 UTC
FEDORA-2023-f46483e5b5 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.