Bug 2333190
Summary: | failed to write boot loader configuration with uefi on u-boot | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | NN708 <nn708> |
Component: | rust-bootupd | Assignee: | Colin Walters <walters> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | anaconda-maint, coreos-sig, eballetbo, hhei, jonathan, kkoukiou, mhou, rust-sig, travier, walters, w |
Target Milestone: | --- | Flags: | fedora-admin-xmlrpc:
mirror+
|
Target Release: | --- | ||
Hardware: | aarch64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | --- | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: |
Description
NN708
2024-12-19 04:03:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle. Changing version to 42. Still valid in the Fedora Linux 43 development cycle. Actually not with u-boot but with tianocore on a Radxa Orin O6 board and following the described steps I'm getting a very similar error. 01:21:35,981 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:Running in chroot '/mnt/sysroot'... bootupctl backend install --auto --write-uuid --update-firmware --device /dev/nvme0n1 / 01:21:36,265 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:Could not prepare Boot variable: Read-only file system 01:21:36,265 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:error: boot data installation failed: installing component EFI: Updating EFI firmware variables: Adding new EFI boot entry: Failed to invoke efibootmgr 01:21:36,265 WARNING org.fedoraproject.Anaconda.Modules.Payloads:DEBUG:program:Return code: 1 Seems efivars are in read-only mode but # mount | grep efivars efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) efivarfs on /mnt/sysimage/sys/firmware/efi/efivars type efivarfs (rw,relatime) efivarfs on /mnt/sysroot/sys/firmware/efi/efivars type efivarfs (rw,relatime) efivarfs on /mnt/sysimage/ostree/deploy/fedora/deploy/7d8b6f8a209433215d0ff4cd7460e8f3b366d681dafd13677eba30ed4d322020.0/sys/firmware/efi/efivars type efivarfs (rw,relatime) efivarfs on /mnt/sysroot/sys/firmware/efi/efivars type efivarfs (rw,relatime) efivarfs on /mnt/sysimage/ostree/deploy/fedora/deploy/7d8b6f8a209433215d0ff4cd7460e8f3b366d681dafd13677eba30ed4d322020.0/sys/firmware/efi/efivars type efivarfs (rw,relatime) efivarfs on /mnt/sysimage/sys/firmware/efi/efivars type efivarfs (rw,relatime) However, the efivars directory is empty for some reason ls /sys/firmware/efi/efivars -l Total 0 So I think this is the first thing to solve for me. Do you have also the efivars empty? In my case, efivarfs is mounted as read-only, but the directory isn't empty: [anaconda root@fedora ~]# mount | grep efivars efivarfs on /sys/firmware/efi/efivars type efivarfs (ro,nosuid,nodev,noexec,relatime) [anaconda root@fedora -]# ls -l /sys/firmware/efi/efivars/ total 0 -rw-r--r--. 1 root root 5 Apr 10 00:00 AuditMode-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 172 Apr 10 00:00 Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 146 Apr 10 00:00 Boot0001-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 8 Apr 10 00:00 BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 5 Apr 10 00:00 DeployedMode-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 24 Apr 10 00:00 LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f -rw-r--r--. 1 root root 1167 Apr 10 00:00 MokListRT-605dab50-e046-4300-abb6-3dd810dd8b23 -rw-r--r--. 1 root root 5 Apr 10 00:00 MokListTrustedRT-605dab50-e046-4300-abb6-3dd810dd8b23 -rw-r--r--. 1 root root 80 Apr 10 00:00 MokListXRT-605dab50-e046-4300-abb6-3dd810dd8b23 -rw-r--r--. 1 root root 12 Apr 10 00:00 OsIndicationsSupported-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 10 Apr 10 00:00 PlatformLang-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 10 Apr 10 00:00 PlatformLangCodes-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 22 Apr 10 00:00 SbatLevelRT-605dab50-e046-4300-abb6-3dd810dd8b23 -rw-r--r--. 1 root root 5 Apr 10 00:00 SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 5 Apr 10 00:00 SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c -rw-r--r--. 1 root root 5 Apr 10 00:00 VendorKeys-8be4df61-93ca-11d2-aa0d-00e098032b8c Sorry that I do not have the env, the new rust-bootupd-0.2.28-2.fc43 (https://koji.fedoraproject.org/koji/buildinfo?buildID=2738689) includes the patch https://github.com/coreos/bootupd/commit/88f576d24680b80c42cfbb9a7ffc74714ed47ace that adds more logs when invoking `efibootmgr`, could someone help to try and get more error logs? Thanks! Reassigning to the bootupd component, as the failure occurs within `bootupctl backend` install, not Anaconda itself. Summary: On systems such as uboot, Tianocore the Fedora Silverblue installation fails during bootloader setup with: ``` Could not prepare Boot variable: Read-only file system boot data installation failed: installing component EFI: Updating EFI firmware variables: Adding new EFI boot entry: Failed to invoke efibootmgr ``` These systems expose /sys/firmware/efi/efivars, but either as read-only or empty; in these cases efibootmgr fails to write Boot#### entries. If this is a known limitation on such platforms `bootupd` should handle this better. It should: * Skip calling efibootmgr if efi vars are not mounted RW Note: Debian seems to be doing something similar: https://salsa.debian.org/installer-team/grub-installer/-/blob/master/grub-installer#L505 Here's the new log: 02:21:20,227 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:Executing: "efibootmgr" "--create" "--disk" "/dev/sdb" "--part" "1" "--loader" "\\EFI\\fedora\\shimaa64.efi" "--label" "Fedora" 02:21:20,229 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:Could not prepare Boot variable: Read-only file system 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:error: boot data installation failed: installing component EFI: Updating EFI firmware variables: Adding new EFI boot entry: Failed to run command: Command { 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:program: "efibootmgr", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:args: [ 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"efibootmgr", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"--create", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"--disk", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"/dev/sdb", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"--part", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"1" 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"--loader", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"\\EFI\\fedora\\shimaa64.efi", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"--label", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:"Fedora", 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:], 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:create_pidfd:false, 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:program:} 02:21:20,230 WARNING org.fedoraproject.Anaconda.Modules.Payloads:DEBUG:program:Return code of bootupctl: 1 02:21:20,231 WARNING org.fedoraproject.Anaconda.Modules.Payloads:INFO:anaconda.core.threads:Thread Failed: AnaTaskThread-ConfigureBootloader-1 (281473290531168) |