Bug 25163 - drakboot crashed
Summary: drakboot crashed
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-21 04:54 CEST by Jim Beard
Modified: 2019-07-28 10:47 CEST (History)
1 user (show)

See Also:
Source RPM: drakxtools-18.21-1.mga7
CVE:
Status comment:


Attachments

Description Jim Beard 2019-07-21 04:54:06 CEST
See my bug report of a few minutes on failure of new kernel installation.
/boot/EFI

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

I was attempting to use mcc to set up my book system, after install of the new kernel 5.1.18-desktop-1.mga7 failed to find a bootloader.

grub2-install failed: Installing for x86_64-efi platform.
grub2-install: error: cannot find EFI directory.
	...propagated at /usr/lib/libDrakX/any.pm line 269.
	...propagated at /usr/libexec/drakboot line 49.
Perl's trace:
drakbug::bug_handler() called from /usr/libexec/drakboot:49

Theme name: Adwaita
Kernel version = 5.1.18-desktop-1.mga7
Distribution=Mageia release 7 (Official) for x86_64
CPU=Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
$ lspcidrake -v
i2c_i801        : Intel Corporation|100 Series/C230 Series Chipset Family SMBus [SERIAL_SMBUS] (vendor:8086 device:a123 subv:1043 subd:8694) (rev: 31)
xhci_pci        : Intel Corporation|100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller [SERIAL_USB] (vendor:8086 device:a12f subv:1043 subd:8694) (rev: 31)
Card:Intel 810 and later: Intel Corporation|HD Graphics 530 [DISPLAY_VGA] (vendor:8086 device:1912 subv:1043 subd:8694) (rev: 06)
e1000e          : Intel Corporation|Ethernet Connection (2) I219-V [NETWORK_ETHERNET] (vendor:8086 device:15b8 subv:1043 subd:8672) (rev: 31)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #9 [BRIDGE_PCI] (vendor:8086 device:a118) (rev: f1)
unknown         : Intel Corporation|Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [BRIDGE_HOST] (vendor:8086 device:191f subv:1043 subd:8694) (rev: 07)
snd_hda_intel   : Intel Corporation|100 Series/C230 Series Chipset Family HD Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:a170 subv:1043 subd:86c9) (rev: 31)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #17 [BRIDGE_PCI] (vendor:8086 device:a167) (rev: f1)
mei_me          : Intel Corporation|100 Series/C230 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (vendor:8086 device:a13a subv:1043 subd:8694) (rev: 31)
xhci_pci        : ASMedia Technology Inc.|ASM1142 USB 3.1 Host Controller [SERIAL_USB] (vendor:1b21 device:1242 subv:1043 subd:8675)
unknown         : Intel Corporation|Z170 Chipset LPC/eSPI Controller [BRIDGE_ISA] (vendor:8086 device:a145 subv:1043 subd:8694) (rev: 31)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #1 [BRIDGE_PCI] (vendor:8086 device:a110) (rev: f1)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family Power Management Controller [MEMORY_OTHER] (vendor:8086 device:a121 subv:1043 subd:8694) (rev: 31)
unknown         : Intel Corporation|Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] [STORAGE_SATA] (vendor:8086 device:a102 subv:1043 subd:8694) (rev: 31)
hub             : Linux 5.1.18-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
usbhid          : BTC|USB Multimedia Keyboard [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:046d device:c313)
usbhid          : PixArt|USB Optical Mouse [Human Interface Device|Boot Interface Subclass|Mouse] (vendor:0461 device:4d0f)
usblp           : Hewlett-Packard|HP LaserJet Pro MFP M127fw [Printer|Printer|Bidirectional] (vendor:03f0 device:322a)
hub             : Linux 5.1.18-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 5.1.18-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Linux 5.1.18-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hid_generic     : PixArt USB Optical Mouse
hid_generic     : BTC USB Multimedia Keyboard
hid_generic     : BTC USB Multimedia Keyboard
[jim@sorrel boot]$
[jim@sorrel boot]$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 232.9G  0 disk
├─sda1    8:1    0   500M  0 part
├─sda2    8:2    0  39.1G  0 part
├─sda3    8:3    0  73.2G  0 part
├─sda4    8:4    0  34.2G  0 part
├─sda5    8:5    0  73.2G  0 part
├─sda6    8:6    0  12.6G  0 part
└─sda7    8:7    0 100.2M  0 part
sdb       8:16   0 232.9G  0 disk
├─sdb1    8:17   0  39.1G  0 part /
├─sdb2    8:18   0  73.2G  0 part /home
├─sdb3    8:19   0  39.1G  0 part
└─sdb4    8:20   0  81.5G  0 part
sdc       8:32   0   1.8T  0 disk
├─sdc1    8:33   0  33.6G  0 part [SWAP]
├─sdc2    8:34   0 150.9G  0 part /music
├─sdc3    8:35   0  19.5G  0 part /geneal
├─sdc4    8:36   0  97.7G  0 part /homebkup
├─sdc5    8:37   0  73.2G  0 part
├─sdc6    8:38   0   3.1G  0 part /vboxguest
├─sdc7    8:39   0 392.3G  0 part /vboxguest1
├─sdc8    8:40   0  74.7G  0 part
├─sdc9    8:41   0  73.4G  0 part
└─sdc10   8:42   0 169.4G  0 part
sdd       8:48   0   1.8T  0 disk
sr0      11:0    1  1024M  0 rom

# ls -laR /boot/EFI
/boot/EFI:
total 24
drwxr-xr-x 6 root root 4096 Dec 31  1969  ./
drwxr-xr-x 5 root root 4096 Jul 20 22:37  ../
drwxr-xr-x 2 root root 4096 Oct 24  2016 '$RECYCLE.BIN'/
drwxr-xr-x 3 root root 4096 Oct 28  2016  EFI/
drwxr-xr-x 3 root root 4096 Nov  1  2016  Recovery/
-rwxr-xr-x 1 root root    0 Nov  1  2016  Recovery.txt*
drwxr-xr-x 2 root root 4096 Oct 31  2016 'System Volume Information'/

'/boot/EFI/$RECYCLE.BIN':
total 12
drwxr-xr-x 2 root root 4096 Oct 24  2016 ./
drwxr-xr-x 6 root root 4096 Dec 31  1969 ../
-rwxr-xr-x 1 root root  129 Oct 24  2016 desktop.ini*

/boot/EFI/EFI:
total 12
drwxr-xr-x 3 root root 4096 Oct 28  2016 ./
drwxr-xr-x 6 root root 4096 Dec 31  1969 ../
drwxr-xr-x 2 root root 4096 Oct 28  2016 mageia/

/boot/EFI/EFI/mageia:
total 132
drwxr-xr-x 2 root root   4096 Oct 28  2016 ./
drwxr-xr-x 3 root root   4096 Oct 28  2016 ../
-rwxr-xr-x 1 root root 125440 Jul 23  2018 grubx64.efi*

/boot/EFI/Recovery:
total 12
drwxr-xr-x 3 root root 4096 Nov  1  2016 ./
drwxr-xr-x 6 root root 4096 Dec 31  1969 ../
drwxr-xr-x 2 root root 4096 Nov  1  2016 Logs/

/boot/EFI/Recovery/Logs:
total 12
drwxr-xr-x 2 root root 4096 Nov  1  2016  ./
drwxr-xr-x 3 root root 4096 Nov  1  2016  ../
-rwxr-xr-x 1 root root   72 Nov  1  2016 'BootUX (1).sqml'*

'/boot/EFI/System Volume Information':
total 12
drwxr-xr-x 2 root root 4096 Oct 31  2016 ./
drwxr-xr-x 6 root root 4096 Dec 31  1969 ../
-rwxr-xr-x 1 root root   76 Oct 24  2016 IndexerVolumeGuid*

By selecting MAGEIA Options and then hitting e to edit the boot command on boot, I was able to change the 14 of 5.1.14-desktop-1.mga7 to 18, I was able to boot
 5.1.18-desktop-1.mga.  After that, I tried to use mcc to set up my bootloader again, and drakxtools failed, and invited me to file a bug.
Comment 1 Lewis Smith 2019-07-21 21:36:52 CEST
> See my bug report of a few minutes on failure of new kernel installation
 https://bugs.mageia.org/show_bug.cgi?id=25162
Comment 2 Lewis Smith 2019-07-21 21:48:45 CEST
Your ESP (EFI System Partition) has lots of strange things, but what matters here is:
 /boot/EFI/EFI/mageia:
 -rwxr-xr-x 1 root root 125440 Jul 23  2018 grubx64.efi*
So at some point, Grub2-efi was installed OK in the proper place. As Thomas says in the other bug, the visibility of the ESP is in question.
If you can get into the system with the added kernel,
 # update-grub2
is usually good for re-making Grub2 menus with everything in them.

CC: (none) => lewyssmith

Comment 3 Lewis Smith 2019-07-26 21:36:37 CEST
Jim
Can you re-visit this? There is the suspicion that somehow the system was installed with Grub2 for MBR, whereas the box is apparently EFI:
> grub2-install failed: Installing for x86_64-efi platform.
> grub2-install: error: cannot find EFI directory.
These messages are consistent.
The related bug 25162 had as an important factor the fact that the system was not configured for the ESP (EFI System Partition), though how that arose is a mystery. You have now manually configured in the ESP, and things are better.

Can you please re-try 'drakboot' to see whether this bug still applies?
Comment 4 Jim Beard 2019-07-27 18:34:16 CEST
Drakboot now works.  See my comments to bug 25162 for the root of the problem, two entries for the DVD reader in the BIOS boot priority order and the wrong entry appeared earlier in the list.
Comment 5 Lewis Smith 2019-07-28 10:47:37 CEST
So we can close this, thank you. The other bug says it all.

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


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