Bug 30580 - Grub2 installation fails on EFI partition
Summary: Grub2 installation fails on EFI partition
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-24 14:59 CEST by Franz Holzinger
Modified: 2022-06-24 16:39 CEST (History)
0 users

See Also:
Source RPM:
CVE:
Status comment:


Attachments
lspcidrake (3.97 KB, text/plain)
2022-06-24 15:00 CEST, Franz Holzinger
Details
fstab (28 bytes, text/plain)
2022-06-24 15:07 CEST, Franz Holzinger
Details
grub custom.cfg (158 bytes, text/plain)
2022-06-24 15:09 CEST, Franz Holzinger
Details
modprobe.conf (442 bytes, text/plain)
2022-06-24 15:11 CEST, Franz Holzinger
Details
fstab on installed system (450 bytes, text/plain)
2022-06-24 16:26 CEST, Franz Holzinger
Details

Description Franz Holzinger 2022-06-24 14:59:24 CEST
New installation of Mageia 8 based on the Mageia 8 GNOME Live DVD.
After repartitioning and format of the /sda1 partition because the Windows 10 EFI  partition enhanced NTFS has not been accepted by Mageia 8,
I finally could install Mageia 8 But the now Grub2 seems not to be able to write itself on the renamed partition /dev/sda5 



---------------------------------


Das Programm "draklive-install" ist mit folgender Fehlermeldung abgestürzt:

  grub2-install failed: x86_64-efi wird für Ihre Plattform installiert.
  Could not prepare Boot variable: Function not implemented
  grub2-install: Fehler: efibootmgr schlug beim Registrieren des Boot-Eintrags fehl: Eingabe-/Ausgabefehler.
  	...propagated at /usr/lib/libDrakX/any.pm line 278.
  Perl's trace:
  drakbug::bug_handler() called from /usr/lib/libDrakX/any.pm:278
  any::installBootloader() called from /usr/sbin/draklive-install:409
  main::setup_bootloader() called from /usr/sbin/draklive-install:109
  main::install_live() called from /usr/sbin/draklive-install:72

Benutztes Theme: Adwaita
Comment 1 Franz Holzinger 2022-06-24 15:00:26 CEST
Created attachment 13312 [details]
lspcidrake
Comment 2 Franz Holzinger 2022-06-24 15:07:57 CEST
Created attachment 13313 [details]
fstab
Comment 3 Franz Holzinger 2022-06-24 15:09:26 CEST
Created attachment 13314 [details]
grub custom.cfg
Comment 4 Franz Holzinger 2022-06-24 15:11:07 CEST
Created attachment 13315 [details]
modprobe.conf
Comment 5 sturmvogel 2022-06-24 15:19:29 CEST
Thank you for the report. The informations regarding the formatting process is unclear. You mention NTFS (not possible to install any linux on it). Did you use drakdisk for formatting? Which options did you chose?

https://doc.mageia.org/draklive/8/en/content/diskPartitioning.html

Your fstab doesn't contain any partitions.
Comment 6 sturmvogel 2022-06-24 15:23:17 CEST
Did you try to check "Install in /EFI/BOOT." for buggy BIOS?

https://doc.mageia.org/draklive/8/en/content/setupBootloader.html#d4e778
Comment 7 Franz Holzinger 2022-06-24 15:28:14 CEST
I had to reformat the /dev/sda1 from the NTFS-enhanced Filesystem to FAT-32, because Mageia demanded a FAT-32 to be mounted at /boot/efi or similar.
This had the second drawback that it has been renamed to /dev/sda5 by the partition tool when I had to change the disk format type.

I do not know why /etc/fstab does not have the partitions on the Live DVD system. But probably they are not mounted on the Live system. The partions are only mounted when I reboot from the harddrive and not from the Live DVD.

I have used gparted to generate the partitions. Later I have used drakdisk to format the partitions.
Comment 8 Franz Holzinger 2022-06-24 16:14:50 CEST
>> Did you try to check "Install in /EFI/BOOT." for buggy BIOS?

I do not get this in the first dialog in the Mageia Installation.

Bootloader: GRUB with graphical menu

Boot Device: EFI system partition

But in the second dialog after the download of the boot packages I get:


o  ... test alien/other OS
o  ... install in EFI/boot


I did only check the first.

Now I try to check both of them.

==>  success. No immediate error message or crash now!
I will report a new bug in the case the boot process will still make troubles.
Comment 9 Franz Holzinger 2022-06-24 16:26:36 CEST
Created attachment 13316 [details]
fstab on installed system
Comment 10 sturmvogel 2022-06-24 16:39:40 CEST
So no bug on Mageia side...only a buggy BIOS of your mainboard which can worked around by ticking the right box in the installer.

Setting to FIXED.

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


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