Bug 17204

Summary: drakboot crashed (grub2-install failed: grub2-install: fel: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist)
Product: Mageia Reporter: Nils-Eric Wilkman <newilkman>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: thierry.vignaud, zen25000
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: drakxtools-17.1-1.mga6 CVE:
Status comment:
Attachments: lspcidrake -v
modprobe.conf
Missing files

Description Nils-Eric Wilkman 2015-11-22 17:33:08 CET
Created attachment 7227 [details]
lspcidrake -v

The "drakboot" program crashed. Drakbug-17.1 caught it.

Konfigurerade startsystemet, med ny kärna

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

Theme name: Adwaita
Kernel version = 4.3.0-desktop-1.mga6
Distribution=Mageia release 6 (Cauldron) for x86_64
CPU=AMD A8-5500 APU with Radeon(tm) HD Graphics
Comment 1 Nils-Eric Wilkman 2015-11-22 17:36:34 CET
Created attachment 7228 [details]
modprobe.conf
Comment 2 Nils-Eric Wilkman 2015-11-22 17:42:42 CET
Created attachment 7229 [details]
Missing files
Comment 3 Barry Jackson 2015-11-23 02:09:43 CET
Could you please show the output of:
rpm -qa|grep grub

and the output of
ls -l /boot

What were you doing when this happened?

CC: (none) => zen25000

Comment 4 Nils-Eric Wilkman 2015-11-23 10:37:33 CET
rpm -qa|grep grub:

grub-0.97-42.mga6
grub-customizer-4.0.6-3.mga6
grub-doc-0.97-42.mga6
grub2-mageia-theme-2.02-0.git10101.2.mga6
grub2-2.02-0.git10101.2.mga6
grub2-common-2.02-0.git10101.2.mga6


ls -l /boot:

totalt 196057
-rw-r--r-- 1 root root   174310 aug 30 00:52 config-4.1.6-desktop-5.mga6
-rw-r--r-- 1 root root   174310 sep 17 10:30 config-4.1.7-desktop-1.mga6
-rw-r--r-- 1 root root   174310 sep 20 15:53 config-4.1.8-desktop-1.mga6
-rw-r--r-- 1 root root   176875 sep 30 20:39 config-4.2.2-desktop-1.mga6
-rw-r--r-- 1 root root   176875 okt  2 20:32 config-4.2.2-desktop-2.mga6
-rw-r--r-- 1 root root   176875 okt  3 23:56 config-4.2.3-desktop-1.mga6
-rw-r--r-- 1 root root   176875 okt 23 19:38 config-4.2.4-desktop-1.mga6
-rw-r--r-- 1 root root   176875 okt 28 10:29 config-4.2.5-desktop-1.mga6
-rw-r--r-- 1 root root   176875 nov 10 22:36 config-4.2.6-desktop-1.mga6
-rw-r--r-- 1 root root   178632 nov 21 23:14 config-4.3.0-desktop-1.mga6
drwxr-xr-x 2 root root     4096 okt 21 02:13 dracut/
drwxrwxrwx 4 root root     1024 jan  1  1970 EFI/
-rw-r--r-- 1 root root   184380 nov 16 02:36 elf-memtest86+-5.01
-rwxr-xr-x 1 root root   562688 nov  3 19:13 gfxmenu*
drwxr-xr-x 2 root root     4096 aug 22 15:06 grub/
drwxr-xr-x 6 root root     4096 nov 22 19:21 grub2/
-rw-r--r-- 1 root root 11668855 aug 30 14:23 initrd-4.1.6-desktop-5.mga6.img
-rw-r--r-- 1 root root 11778187 sep 18 18:02 initrd-4.1.7-desktop-1.mga6.img
-rw-r--r-- 1 root root 11778106 sep 21 16:38 initrd-4.1.8-desktop-1.mga6.img
-rw-r--r-- 1 root root 11859989 okt  1 11:41 initrd-4.2.2-desktop-1.mga6.img
-rw-r--r-- 1 root root 11802770 okt  3 17:13 initrd-4.2.2-desktop-2.mga6.img
-rw-r--r-- 1 root root 11801996 okt  4 16:17 initrd-4.2.3-desktop-1.mga6.img
-rw-r--r-- 1 root root 11835395 okt 24 19:43 initrd-4.2.4-desktop-1.mga6.img
-rw-r--r-- 1 root root 11835640 okt 28 18:43 initrd-4.2.5-desktop-1.mga6.img
-rw-r--r-- 1 root root 11880111 nov 11 10:23 initrd-4.2.6-desktop-1.mga6.img
-rw-r--r-- 1 root root 11816184 nov 22 16:51 initrd-4.3.0-desktop-1.mga6.img
lrwxrwxrwx 1 root root       31 nov 22 16:51 initrd-desktop.img -> initrd-4.3.0-desktop-1.mga6.img
lrwxrwxrwx 1 root root       31 nov 22 16:51 initrd.img -> initrd-4.3.0-desktop-1.mga6.img
-rw-r--r-- 1 root root   182704 nov 16 02:36 memtest.bin
-rw-r--r-- 1 root root   249604 aug 30 00:52 symvers-4.1.6-desktop-5.mga6.xz
-rw-r--r-- 1 root root   249564 sep 17 10:30 symvers-4.1.7-desktop-1.mga6.xz
-rw-r--r-- 1 root root   249564 sep 20 15:53 symvers-4.1.8-desktop-1.mga6.xz
-rw-r--r-- 1 root root   252532 sep 30 20:39 symvers-4.2.2-desktop-1.mga6.xz
-rw-r--r-- 1 root root   252536 okt  2 20:32 symvers-4.2.2-desktop-2.mga6.xz
-rw-r--r-- 1 root root   252536 okt  3 23:56 symvers-4.2.3-desktop-1.mga6.xz
-rw-r--r-- 1 root root   252572 okt 23 19:38 symvers-4.2.4-desktop-1.mga6.xz
-rw-r--r-- 1 root root   252572 okt 28 10:29 symvers-4.2.5-desktop-1.mga6.xz
-rw-r--r-- 1 root root   252520 nov 10 22:36 symvers-4.2.6-desktop-1.mga6.xz
-rw-r--r-- 1 root root   255372 nov 21 23:14 symvers-4.3.0-desktop-1.mga6.xz
-rw-r--r-- 1 root root  3301489 aug 30 00:52 System.map-4.1.6-desktop-5.mga6
-rw-r--r-- 1 root root  3301759 sep 17 10:30 System.map-4.1.7-desktop-1.mga6
-rw-r--r-- 1 root root  3301778 sep 20 15:53 System.map-4.1.8-desktop-1.mga6
-rw-r--r-- 1 root root  3318875 sep 30 20:39 System.map-4.2.2-desktop-1.mga6
-rw-r--r-- 1 root root  3318942 okt  2 20:32 System.map-4.2.2-desktop-2.mga6
-rw-r--r-- 1 root root  3318942 okt  3 23:56 System.map-4.2.3-desktop-1.mga6
-rw-r--r-- 1 root root  3319085 okt 23 19:38 System.map-4.2.4-desktop-1.mga6
-rw-r--r-- 1 root root  3319155 okt 28 10:29 System.map-4.2.5-desktop-1.mga6
-rw-r--r-- 1 root root  3319329 nov 10 22:36 System.map-4.2.6-desktop-1.mga6
-rw-r--r-- 1 root root  3361318 nov 21 23:14 System.map-4.3.0-desktop-1.mga6
lrwxrwxrwx 1 root root       28 nov 22 16:51 vmlinuz -> vmlinuz-4.3.0-desktop-1.mga6
-rw-r--r-- 1 root root  4441616 aug 30 00:52 vmlinuz-4.1.6-desktop-5.mga6
-rw-r--r-- 1 root root  4441296 sep 17 10:30 vmlinuz-4.1.7-desktop-1.mga6
-rw-r--r-- 1 root root  4445968 sep 20 15:53 vmlinuz-4.1.8-desktop-1.mga6
-rw-r--r-- 1 root root  4400016 sep 30 20:39 vmlinuz-4.2.2-desktop-1.mga6
-rw-r--r-- 1 root root  4399152 okt  2 20:32 vmlinuz-4.2.2-desktop-2.mga6
-rw-r--r-- 1 root root  4400240 okt  3 23:56 vmlinuz-4.2.3-desktop-1.mga6
-rw-r--r-- 1 root root  4403760 okt 23 19:38 vmlinuz-4.2.4-desktop-1.mga6
-rw-r--r-- 1 root root  4398224 okt 28 10:29 vmlinuz-4.2.5-desktop-1.mga6
-rw-r--r-- 1 root root  4399536 nov 10 22:36 vmlinuz-4.2.6-desktop-1.mga6
-rw-r--r-- 1 root root  4447360 nov 21 23:14 vmlinuz-4.3.0-desktop-1.mga6
lrwxrwxrwx 1 root root       28 nov 22 16:51 vmlinuz-desktop -> vmlinuz-4.3.0-desktop-1.mga6

I was using  grub2-efi-2.02-0.git10101.2.mga6.x86_64 RPM when drakboot crashed, but I removed it and installed grub2-2.02-0.git10101.2.mga6.x86_64 RPM and I could use "Konfigurera startsystem" without a crash. So the problem seems to ne in the efi version of grub2,
it does not istall all needed files like modinfo.sh. 

What were you doing when this happened?
I had installed the new kernel 4.3.0 and no new initrd/vwmlinuz were created, so I tried to creat them with the Mageia tool "Konfigurera startsystem" and then I got the crashreport.
Comment 5 Barry Jackson 2015-11-23 12:29:02 CET
You cannot install grub2-efi on a system that was not initially installed in UEFI mode, even if you have a dual mode (UEFI/legacy) motherboard.

In order to use UEFI you must install Mageia from the UEFI install media with the machine in UEFI mode, and disks partitioned with GPT.

If it is now working correctly with grub2 installed, then you are booting the hardware in legacy PC-BIOS mode, 

Leave well alone :)

I think I will add a warning to the grub2-efi description in the package to stop people trying to do this, as you are not the first.

Please just confirm that my guess is correct, and that you tried to install grub2-efi on a non-UEFI system.

Thanks.
Thierry Vignaud 2015-11-23 14:52:37 CET

CC: (none) => thierry.vignaud
Summary: drakboot crashed => drakboot crashed (grub2-install failed: grub2-install: fel: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist)

Comment 6 Nils-Eric Wilkman 2015-11-23 18:32:06 CET
Yes you are right, for some reason I installed the grub2-efi although I had the right grub2 installed before. The system is up and running with the latest kernel.

Thanks for your help.
Regards Nils-Eric
Comment 7 Barry Jackson 2015-11-24 00:50:33 CET
Glad it's sorted - I added a warning to the description of the grub2-efi package which may help stop this happening to other people.

Closing then.

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