Bug 31844 - Rescue: reinstall of EFI boot mgr fails
Summary: Rescue: reinstall of EFI boot mgr fails
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-26 16:32 CEST by Marc Krämer
Modified: 2024-05-22 23:46 CEST (History)
3 users (show)

See Also:
Source RPM: drakx-installer-rescue
CVE:
Status comment:


Attachments

Description Marc Krämer 2023-04-26 16:32:23 CEST
grub2-install gives an error due to missing module efivars.
Comment 1 Marc Krämer 2023-04-26 17:58:40 CEST
running drakboot in chroot succeeded.
but grub2-install (efibootmgr) still gives errors.
Comment 2 Lewis Smith 2023-04-26 20:06:11 CEST
Can you describe what you were doing? Running the Classic installer on an existing installation?

CC: (none) => lewyssmith

Comment 3 Marc Krämer 2023-04-27 13:36:22 CEST
Simple:
- have mga8/9 with efi boot on disk.
- Use netinstall-img
- choose rescue-boot
- try to reinstall bootloader (e.g. disk from one pc to another, so efi needs updated)
- rescue calls /boot/grub2/install.sh - with grub2-install; both exit with !=0 status
- calling grub2-install -v shows "modprobe -q efivars" which is not present, and then sth. with "no such file or directory"; both comes from efimgr

module efivarfs is present, and /sys/firmware/efi is present and filled with files, also /boot/efi is present and has files.
Comment 4 Martin Whitaker 2023-04-28 16:29:17 CEST
grub2-install is called inside a chroot, so efivarfs needs to be mounted in the chroot too.

Fixed in drakx-installer-rescue-1.67-1.mga9.

CC: (none) => mageia

Comment 5 Jens Persson 2023-04-28 18:19:35 CEST
Yeah I ran into this problem a while ago. Tried upgrading instead and it worked. Did some digging and found out that it could be related to grub-install missing the --removable flag. But it seems that you can solve it like Martin said too.

https://unix.stackexchange.com/questions/693101/reinstall-grub-grub-install-warning-efi-variables-are-not-supported-on-this-s

CC: (none) => xerxes2

Comment 6 Lewis Smith 2023-04-28 20:13:11 CEST
(In reply to Martin Whitaker from comment #4)
> Fixed in drakx-installer-rescue-1.67-1.mga9.
Great work - again!

Closing appropriately.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 7 Martin Whitaker 2024-05-22 22:15:07 CEST Comment hidden (obsolete)
Comment 8 Martin Whitaker 2024-05-22 23:46:10 CEST
Please ignore/hide the previous comment, which was meant for bug 33234 :-(

Note You need to log in before you can comment on or make changes to this bug.