Bug 15788 - drakboot crashed (grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist)
Summary: drakboot crashed (grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh d...
Status: RESOLVED DUPLICATE of bug 15823
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2015-04-28 14:04 CEST by Roland Gillard
Modified: 2015-05-04 12:40 CEST (History)
5 users (show)

See Also:
Source RPM: drakxtools-16.86-1.mga5
CVE:
Status comment:


Attachments

Description Roland Gillard 2015-04-28 14:04:15 CEST
The "drakboot" program crashed. Drakbug-16.86 caught it.

essayer de remettre grub2 dans l'UEFI du hp15N

grub2-install failed: grub2-install : erreur : /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
	...propagated at /usr/lib/libDrakX/any.pm line 264.
	...propagated at /usr/libexec/drakboot line 64.
Perl's trace:
drakbug::bug_handler() called from /usr/libexec/drakboot:64

Theme name: oxygen-gtk
Kernel version = 3.19.4-desktop-2.mga5
Distribution=Mageia release 5 (Cauldron) for x86_64
CPU=AMD A6-5200 APU with Radeon(TM) HD Graphics
Comment 1 Roland Gillard 2015-04-28 14:08:49 CEST
idem à l'installation (lancée UEFI/usb).


déjà un grub2 (Ubuntu) sur sda2;  qui fonctionne encore et me permet
s'utiliser Mga5RC
Comment 2 Thierry Vignaud 2015-04-28 15:17:57 CEST
That's usually because one installed grub2-efi on a !UEFI machine or disabled UEFI in either firmware or VBox....

What's the ouput of the following commands:
rpm -qa 'grub2*'
ls /sys/firmware/efi

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Thierry Vignaud 2015-04-28 15:18:11 CEST

Summary: drakboot crashed => drakboot crashed (grub2-install : erreur : /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist)

Comment 3 Roland Gillard 2015-04-28 17:06:40 CEST

1)  rpm -qa 'grub2*'
grub2-2.02-0.git9752.18.mga5
grub2-mageia-theme-2.02-0.git9752.18.mga5

2) ls /sys/firmware/efi/
config_table  efivars  fw_vendor  runtime  runtime-map  systab  vars



3) par curiosité, j'ai regardé le contenu de /usr/lib/grub :

ls /usr/lib/grub/
i386-pc/  x86_64-mageia/

donc pas de x86-64-efi :-<
et juste un modinfo.sh dans i386-pc.

pb de chemins ?
C'est pourtant bien la version 64 bits qui est installée :
urpmi grub2
Le paquetage grub2-2.02-0.git9752.18.mga5.x86_64 est déjà installé

Comme je l'ai mentionné il y a déjà un grub2 d'Ubuntu / Mint  dans la partition boot de l'UEFI (sda2):
voici son répertoire EFI :

ls EFI
Boot/  HP/  Microsoft/  ubuntu/
Comment 4 Rémi Verschelde 2015-04-28 21:47:05 CEST
Please try to comment in English (maybe also include the French version afterwards if you have to use an automatic translator and are not sure that everything is properly translated). Mageia has many contributors who do not speak French and are so far excluded from the conversation.
Comment 5 Thierry Vignaud 2015-04-29 06:14:00 CEST
The issue is you've installed grub2 instead of grub2-efi
Comment 6 Thierry Vignaud 2015-04-29 08:58:39 CEST
How did you install grub2?
Comment 7 Roland Gillard 2015-04-29 09:06:54 CEST
Grub2 was there by the installation of Mga5RC;

But I did an update of Mga4 with grub installed. I shall

1) try grub2-efi and see the result
2) redo a clean  installation

Finally it was a luck that grub2 fails it would break the UEFI boot process

I ll do this on Friday
Comment 8 Thierry Vignaud 2015-04-29 10:15:56 CEST
grub2 would only have been installed if UEFI was disabled at install time
Could you attach your /root/drakx/report.bug*xz files?

Summary: drakboot crashed (grub2-install : erreur : /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist) => drakboot crashed (grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist)

Comment 9 Roland Gillard 2015-05-01 09:33:57 CEST
I got no such file ;
but here is the content of the drakx directory :

ls drakx
auto_inst.cfg.pl  ddebug.log  install.log  updates.log1
how to join the gz of this directory  

I also tried to use use grub2-efi after desinstalling grub2
but with a new crash ; halas I forgot the battery loader;
so I cannot stay a long time on that computer....
Comment 10 Roland Gillard 2015-05-03 09:27:39 CEST
As in my comment 7 and 9 I tried (twice) to launch grub2-efi from mcc
The second time I was connected to internet and so a report was done :
bug 15823.


To summarize bug 15788 :

The HP 15N is sold with a gpt HD of 1 To. No access to it.

I  installed mageia 4 on it and was able to boot on it with grub on
an USB key. After that I Installed also Ubuntu which succeeded to add
its boot process to the sda2 partition. I just updated the Ubuntu menu.cfg
to add a mageia entry.


I found that all this was not so confortable and used a Dell laptop without EFI

When I saw that Mageia5 RC adds the EFI I decided to try it as they ask for testers. I put the installer with EFI on an usb key and succeeded to UPDATE mga4.1 to Mga5RC but it heritades  the grub and grub2 without EFI; the Ubuntu
EFI boot process continues to work; so I still have an access to Mga5RC.
Using mcc I launched the grub installer but It was grub2 not grub2-efi so
it crashed.

I copied the directory /root/drakx on an USB key (see comment 8 , and 9) 
I also tried to use use grub2-efi after desinstalling grub2
but with a new crash ;
Comment 11 Thierry Vignaud 2015-05-03 10:42:56 CEST
You changed what we installed and was working.

Switching from !UEFI to UEFI on upgrade is not supported.
If you manually shoot yourself in the foot, we cannot help you.

If you want a pure UEFI install, you must perform a new install.

*** This bug has been marked as a duplicate of bug 15823 ***

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

Comment 12 Samuel Verschelde 2015-05-03 10:47:28 CEST
(In reply to Thierry Vignaud from comment #11)
> If you want a pure UEFI install, you must perform a new install.

Thierry, if you want to be able to reply this to users, this should be documented somewhere. Is it? I suggest adding a note to Release notes in EFI section. And also in our UEFI howto wiki page.

CCing docteam.

CC: (none) => doc-bugs, qa-bugs

Comment 13 Samuel Verschelde 2015-05-03 10:49:58 CEST
To Roland: thanks for reporting those issues, it will at least allow us to improve user documentation. I understand one could have expected drakboot would be able to do the switch. I would have.
Comment 14 Roland Gillard 2015-05-03 11:17:14 CEST
No problem for me !

When I upgraded the Mga4.1, I thought it was a mistake but I went on in testing.
with grub2 it was quite silly and the crash was a luck...
with grub2-efi I thought I would be possible .

My comment 7 contains the true method , a clean install 

The comment of Thierry
<<You changed what we installed and was working.>> is not true :

I was not really  working so it is why I tried to test but not beginning by the best option. But it is intersting to test all the cases I can .

Thank you for your work
Comment 15 papoteur 2015-05-03 11:56:17 CEST
Release section updated here:
https://wiki.mageia.org/en/Mageia_5_Release_Notes#UEFI
and  here:
https://wiki.mageia.org/en/Installing_on_systems_with_UEFI_firmware#BIOS_or_UEFI_firmware section "Good to know.
Is it OK?

CC: (none) => yves.brungard_mageia

Comment 16 Manuel Hiebel 2015-05-03 12:14:54 CEST
also added in the upgrade section
Comment 17 Marja Van Waes 2015-05-03 12:16:54 CEST
indeed
https://wiki.mageia.org/en/Mageia_5_Release_Notes#Using_the_traditional_Mageia_5_DVD_to_Upgrade

CC: (none) => marja11

Comment 18 Roland Gillard 2015-05-03 14:49:01 CEST
I note :

<<At last, there is something very important, check your ESP is mounted on /boot/EFI (This partition must exist, it has been created during the first installation, even not a Linux one). In the screenshot above, it is mounted on /media/windows. To do that, click on the ESP and on "Mount Point" and then select /boot/EFI/.>> 
in the second link of comment 15


Perhaps I shall retry my usb2-uefi test with a manual mount of that 
partition before launching drakboot via mmc.
Comment 19 Roland Gillard 2015-05-04 12:00:23 CEST
(In reply to Roland Gillard from comment #18)
> I note :
> 
> <<At last, there is something very important, check your ESP is mounted on
> /boot/EFI (This partition must exist, it has been created during the first
> installation, even not a Linux one). In the screenshot above, it is mounted
> on /media/windows. To do that, click on the ESP and on "Mount Point" and
> then select /boot/EFI/.>> 
> in the second link of comment 15
> 
> 
> Perhaps I shall retry my usb2-uefi test with a manual mount of that 
> partition before launching drakboot via mmc.



YES it worked !!!!
I just use mmc :
1. mount my EF partition in /boot/EFI
2 use the <<démarrage>> and <<démarrage du sytème>>

it took around 1 minute and terminate without crashing or crying

before reboting I was happy to see a /boot/EFI/EFI/mageia directory 

and it succeeded in booting Mga5RC !!



So I am giving up my clean installation option (more than 2 hours spared)

I would be very nice  to embed the mounting of the EF partition in the
installation process

Resolution: DUPLICATE => FIXED

Comment 20 Samuel Verschelde 2015-05-04 12:31:02 CEST
Good news.

However, this bug was closed as a duplicate of bug 15823 so please do not change its status.

*** This bug has been marked as a duplicate of bug 15823 ***

Resolution: FIXED => DUPLICATE

Comment 21 Marja Van Waes 2015-05-04 12:39:21 CEST
(In reply to Roland Gillard from comment #19)

> 
> 
> So I am giving up my clean installation option (more than 2 hours spared)
> 
> I would be very nice  to embed the mounting of the EF partition in the
> installation process

That is already the case and will work for both
* fresh UEFI-mode installs
* upgrading UEFI-mode systems

However, it will not be added for upgrading a legacy/BIOS-mode Mageia install to the next Mageia version in UEFI-mode.
Comment 22 Marja Van Waes 2015-05-04 12:40:19 CEST
* upgrading UEFI-mode systems

more precise:
* upgrading UEFI-mode mageia installs

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