Creating boot option for non-ACPI systems fails

Bug #2029407 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
efivar (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On an riscv64 emulated system with ACPI grub-install fails.

After enabling debug output I see the following log:

efivar: linux.c:464 device_get(): No such file or directory: could not access /sys/block/nvme1n1/device/driver
efivar: util.h:324 get_file(): No such file or directory: could not open file "/sys/devices/pci0000:00/firmware_node/path" for reading
efivar: util.h:324 get_file(): No such file or directory: could not open file "/sys/devices/pci0000:00/firmware_node/hid" for reading
efivar: linux-acpi.c:63 parse_acpi_hid_uid(): No such file or directory: could not read devices/pci0000:00/firmware_node/hid
efivar: linux.c:509 device_get(): No such file or directory: parsing pci_root failed
efivar: creator.c:194 efi_va_generate_file_device_path_from_esp(): No such file or directory: could not get ESP disk info
efivar: creator.c:349 efi_generate_file_device_path_from_esp(): No such file or directory: could not generate File DP from ESP
efibootmgr.c: efi.c:389 make_linux_load_option(): No such file or directory: efi_generate_file_device_path_from_esp() = -1 (failed)
efibootmgr.c: efibootmgr.c:321 make_var(): No such file or directory: make_linux_load_option() failed
efibootmgr.c: efibootmgr.c:370 make_var(): No such file or directory: Could not set variable
Could not prepare Boot variable: No such file or directory

There is a bug in device_get() that leads to exiting after one of the parsers failing instead of continuing with the next parser.

I have created an upstream merge request
https://github.com/rhboot/efivar/pull/246
and a Debian merge request
https://salsa.debian.org/efi-team/efivar/-/merge_requests/13.

Tags: fr-5044
tags: added: fr-5044
tags: added: foundations-todo
Changed in efivar (Ubuntu):
assignee: nobody → Heinrich Schuchardt (xypron)
Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

The package efivar - 37-6ubuntu3~ppa1 is available in ppa:xypron/gnu-efi.

Changed in efivar (Ubuntu):
assignee: Heinrich Schuchardt (xypron) → nobody
Revision history for this message
Julian Andres Klode (juliank) wrote :

Sponsored.

Changed in efivar (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package efivar - 37-6ubuntu3

---------------
efivar (37-6ubuntu3) mantic; urgency=medium

  * Fix creation of boot options on non-ACPI systems (LP: #2029407)
    d/p/0001-linux-handle-non-ACPI-systems-in-device_get.patch

 -- Heinrich Schuchardt <email address hidden> Thu, 03 Aug 2023 10:21:40 +0200

Changed in efivar (Ubuntu):
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
tags: removed: foundations-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.