Skip to content

Log more information when invoking efibootmgr #907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
M4rtinK opened this issue Apr 17, 2025 · 0 comments
Open

Log more information when invoking efibootmgr #907

M4rtinK opened this issue Apr 17, 2025 · 0 comments

Comments

@M4rtinK
Copy link

M4rtinK commented Apr 17, 2025

We had recently had a few cases reported to us at the Anaconda installer project with users trying to install recent fedora on ARM machines only for the installation failing when bootupd is invoking efibootmgr, with very little information being captured in the system Journal.

One such case is captured in https://bugzilla.redhat.com/show_bug.cgi?id=2333190 and the only relevant data captured in Journal looks like this:

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

This does not really tell us what happened or even with which parameters efibootmgr was executed so we could try reproduce the issue.

To improve the situation I would have the following suggestions for a bootupd RFE:

  • log the with which parameters efibootmgr is invoked in journal
  • log stderr from efibootmgr to Journal
  • optimally might as well log also stdout from efibootmgr to Journal, unless its horribly verbose

Thanks in advance & we can certainly help with testing once this is available. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant