Bug 22791

Summary: drakboot crashed when trying to switch from grub to grub2 (Can't use an undefined value as a HASH reference at /usr/lib/libDrakX/any.pm line 644. )
Product: Mageia Reporter: jacques mazzega <jacques.mazzega>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: marja11, zen25000
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: drakxtools-16.104-1.mga5, grub2 CVE:
Status comment:
Attachments: les fichiers demandés

Description jacques mazzega 2018-03-17 15:14:00 CET
The "drakboot" program crashed. Drakbug-16.104 caught it.

j' ai installé mag5 avec grub, puis j'ai voulu installer grub2 mag5. à partir de drakconf

Can't use an undefined value as a HASH reference at /usr/lib/libDrakX/any.pm line 644.
	...propagated at /usr/libexec/drakboot line 64.
Perl's trace:
drakbug::bug_handler() called from /usr/libexec/drakboot:64

Theme name: Adwaita
Kernel version = 3.19.8-desktop-3.mga5
Distribution=Mageia release 5 (Official) for x86_64
CPU=Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
Comment 1 jacques mazzega 2018-03-17 15:15:28 CET
Le programme « drakboot » a planté avec l'erreur suivante :

  Can't use an undefined value as a HASH reference at /usr/lib/libDrakX/any.pm line 644.
  	...propagated at /usr/libexec/drakboot line 64.
  Perl's trace:
  drakbug::bug_handler() called from /usr/libexec/drakboot:64

Thème utilisé : Adwaita

Pour soumettre un rapport de bogue, cliquez sur le bouton Signaler.  
Cela ouvrira une fenêtre de navigateur sur Bugzilla où vous trouverez un formulaire à remplir.  L'information affichée ci-dessus sera transférée vers ce serveur
Il est très utile d'inclure dans votre rapport la sortie des commandes suivantes : « lspcidrake -v », « blkid ».
Vous devriez attacher les fichiers suivants : /etc/modprobe.conf, /etc/fstab, /boot/grub/menu.lst, /boot/grub/devices.map ainsi que /etc/lilo.conf.
Comment 2 jacques mazzega 2018-03-17 15:22:36 CET
[user@localhost ~]$ su
Mot de passe : 
[root@localhost user]# lspcidrake -v
xhci_pci        : NEC Corporation|uPD720200 USB 3.0 Host Controller [SERIAL_USB] (vendor:1033 device:0194 subv:1179 subd:0001) (rev: 04)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:1179 subd:0003) (rev: 06)
ath9k           : Qualcomm Atheros|AR9285 Wireless Network Adapter (PCI-Express) [NETWORK_OTHER] (vendor:168c device:002b subv:11ad subd:6613) (rev: 01)
unknown         : Ricoh Co Ltd|Device e232 [SYSTEM_OTHER] (vendor:1180 device:e232 subv:1179 subd:0001) (rev: 04)
sdhci_pci       : Ricoh Co Ltd|PCIe SDXC/MMC Host Controller [SYSTEM_OTHER] (vendor:1180 device:e823 subv:1179 subd:0001) (rev: 07)
snd_hda_intel   : NVIDIA Corporation|GF108 High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:10de device:0bea) (rev: a1)
Card:NVIDIA GeForce 420 series and later: NVIDIA Corporation|GF108M [GeForce GT 540M] [DISPLAY_VGA] (vendor:10de device:0df4 subv:1179 subd:0001) (rev: a1)
unknown         : Intel Corporation|6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [STORAGE_SATA] (vendor:8086 device:1c03 subv:1179 subd:0001) (rev: 04)
lpc_ich         : Intel Corporation|HM65 Express Chipset Family LPC Controller [BRIDGE_ISA] (vendor:8086 device:1c49 subv:1179 subd:0001) (rev: 04)
ehci_pci        : Intel Corporation|6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [SERIAL_USB] (vendor:8086 device:1c26 subv:1179 subd:0001) (rev: 04)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 5 [BRIDGE_PCI] (vendor:8086 device:1c18) (rev: b4)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 4 [BRIDGE_PCI] (vendor:8086 device:1c16) (rev: b4)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 3 [BRIDGE_PCI] (vendor:8086 device:1c14) (rev: b4)
shpchp          : Intel Corporation|6 Series/C200 Series Chipset Family PCI Express Root Port 1 [BRIDGE_PCI] (vendor:8086 device:1c10) (rev: b4)
snd_hda_intel   : Intel Corporation|6 Series/C200 Series Chipset Family High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:1c20 subv:1179 subd:0001) (rev: 04)
ehci_pci        : Intel Corporation|6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [SERIAL_USB] (vendor:8086 device:1c2d subv:1179 subd:0001) (rev: 04)
mei_me          : Intel Corporation|6 Series/C200 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (vendor:8086 device:1c3a subv:1179 subd:0001) (rev: 04)
shpchp          : Intel Corporation|Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [BRIDGE_PCI] (vendor:8086 device:0101) (rev: 09)
unknown         : Intel Corporation|2nd Generation Core Processor Family DRAM Controller [BRIDGE_HOST] (vendor:8086 device:0104 subv:1179 subd:0001) (rev: 09)
hub             : Linux 3.19.8-desktop-3.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:0024)
cdc_ether       : HUAWEI_MOBILE|HUAWEI_MOBILE [Communications|Ethernet Networking] (vendor:12d1 device:1c2b)
hub             : Linux 3.19.8-desktop-3.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 3.19.8-desktop-3.mga5 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Linux 3.19.8-desktop-3.mga5 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Integrated Rate Matching Hub [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:0024)
btusb           : Atheros Communications, Inc.|AR3011 Bluetooth [Wireless|Radio Frequency|Bluetooth] (vendor:0cf3 device:3005)
uvcvideo        : Chicony|TOSHIBA Web Camera - HD [Video|Video Control] (vendor:04f2 device:b26a)
unknown         : Unknown|Unknown (vendor:2488 device:0000)
Module:toshiba  : TOSHIBA|TOSHIBA
Pkg:toshutils   : TOSHIBA|TOSHIBA
[root@localhost user]# blkid
/dev/sda1: LABEL="System" UUID="3C40AC7D40AC400E" TYPE="ntfs" PARTUUID="d49bf5f7-01"
/dev/sda2: LABEL="TI30815000A" UUID="5E52DB4452DB1F97" TYPE="ntfs" PARTUUID="d49bf5f7-02"
/dev/sda3: UUID="acb77a09-c42a-49dd-a427-0ffd5e2a4551" TYPE="ext4" PARTUUID="d49bf5f7-03"
/dev/sda5: UUID="854485f4-1356-47eb-8e1c-de1216477452" TYPE="ext4" PARTUUID="d49bf5f7-05"
/dev/sda6: UUID="d0697bb8-dd47-477b-822a-4690d9b87a7a" TYPE="ext4" PARTUUID="d49bf5f7-06"
/dev/sda7: UUID="4693242e-1019-43ef-a32c-b80c24d8eecc" TYPE="reiserfs" PARTUUID="d49bf5f7-07"
/dev/sda8: UUID="879ccd54-4b9c-44ee-a55a-4417f2b2d456" TYPE="swap" PARTUUID="d49bf5f7-08"
/dev/sda9: UUID="d41ff315-3c65-4c98-b6d5-4c324a58cbf5" TYPE="ext4" PARTUUID="d49bf5f7-09"
/dev/sda10: UUID="12FB832367777FE6" TYPE="ntfs" PARTUUID="d49bf5f7-0a"
/dev/sda11: UUID="5424125f-faa2-41ea-b279-ad5a072ff9e7" TYPE="ext4" PARTUUID="d49bf5f7-0b"
/dev/sda12: UUID="adbd2023-1b81-40e0-899c-c7c0c0810ae2" TYPE="ext4" PARTUUID="d49bf5f7-0c"
/dev/sr0: UUID="2015-06-1
Comment 3 jacques mazzega 2018-03-17 15:34:31 CET
Created attachment 10050 [details]
les fichiers demandés

fstab :
# Entry for /dev/sda3 :
UUID=acb77a09-c42a-49dd-a427-0ffd5e2a4551 / ext4 noatime,acl 1 1
# Entry for /dev/sda1 :
#UUID=3C40AC7D40AC400E /media/win_c ntfs-3g defaults,nofail,umask=000 0 0
# Entry for /dev/sda10 :
UUID=12FB832367777FE6 /media/win_d ntfs-3g defaults,nofail,umask=000 0 0
# Entry for /dev/sda2 :
#UUID=5E52DB4452DB1F97 /media/win_e ntfs-3g defaults,nofail,umask=000 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda8 :
UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456 swap swap defaults 0 0

menu.lst :

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,2)/boot/gfxmenu
default 0

title linux
kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=acb77a09-c42a-49dd-a427-0ffd5e2a4551  nokmsboot splash quiet noiswmd resume=UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456 vga=788
root (hd0,2)
initrd /boot/initrd.img

title linux-nonfb
kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=acb77a09-c42a-49dd-a427-0ffd5e2a4551  nokmsboot resume=UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456
root (hd0,2)
initrd /boot/initrd.img

title failsafe
kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=acb77a09-c42a-49dd-a427-0ffd5e2a4551  nokmsboot failsafe noiswmd
root (hd0,2)
initrd /boot/initrd.img

title Mageia-4.9.35-desktop-1.mga6
root (hd0,11)
kernel /boot/vmlinuz-4.9.35-desktop-1.mga6  root=UUID=adbd2023-1b81-40e0-899c-c7c0c0810ae2    ro nokmsboot splash   quiet noiswmd resume=UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456 audit=0  vga=791
initrd /boot/initrd-4.9.35-desktop-1.mga6.img

title Mageia-4.9.35-desktop-1.mga6
root (hd0,11)
kernel /boot/vmlinuz-4.9.35-desktop-1.mga6  root=UUID=adbd2023-1b81-40e0-899c-c7c0c0810ae2    ro nokmsboot splash   quiet noiswmd  audit=0  vga=791
initrd /boot/initrd-4.9.35-desktop-1.mga6.img


title mageia6
kernel (hd0,11)/boot/vmlinuz BOOT_IMAGE=mageia6 root=UUID=adbd2023-1b81-40e0-899c-c7c0c0810ae2  nokmsboot splash quiet noiswmd resume=UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456 vga=788
root (hd0,11)
initrd /boot/initrd.img

title windows
root (hd0,0)
makeactive
chainloader +1

title pcosl
kernel (hd0,5)/boot/vmlinuz BOOT_IMAGE=pcosl root=UUID=d0697bb8-dd47-477b-822a-4690d9b87a7a nokmsboot splash quiet resume=UUID=879ccd54-4b9c-44ee-a55a-4417f2b2d456 vga=788
root (hd0,5)
initrd /boot/initrd.img

title debianKNOPPIX
root (hd0,6)
kernel /boot/vmlinuz root=/dev/sda7 rootwait lang=fr apm=power-off nomce libata.force=noncq tz=localtime loglevel=1 lang=fr desktop=lxde|kde|gnome rw

title		Ubuntu 16.04 LTS, kernel 4.4.0-21-generic
root		(hd0,4)
kernel		/boot/vmlinuz-4.4.0-21-generic root=UUID=854485f4-1356-47eb-8e1c-de1216477452 ro quiet
initrd		/boot/initrd.img-4.4.0-21-generic


title		Ubuntu 16.04 LTS, kernel 4.4.0-21-handoff
root		(hd0,5)
kernel		/boot/vmlinuz-4.4.0-21-generic root=UUID=854485f4-1356-47eb-8e1c-de1216477452 ro quiet/ vt_handoff
initrd		/boot/initrd.img-4.4.0-21-generic


title		Ubuntu 16.04 LTS, kernel 4.4.0-21-generic (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-4.4.0-21-generic root=UUID=854485f4-1356-47eb-8e1c-de1216477452 ro  single
initrd		/boot/initrd.img-4.4.0-21-generic

device.map :

(hd0) /dev/sda

no lilo.conf
Comment 4 jacques mazzega 2018-03-17 15:35:42 CET
modprobe.conf :

alias enp4s0 r8169
options snd-ac97-codec power_save=1
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe ehci_pci; /sbin/modprobe xhci_hcd; /sbin/modprobe xhci_pci; /bin/true
alias sound-slot-1 snd_hda_intel
alias sound-slot-0 snd_hda_intel
alias wlp3s0 ath9k
install sdhci_pci /sbin/modprobe --first-time --ignore-install sdhci_pci && { /sbin/modprobe mmc_block; /bin/true; }
remove sdhci_pci /sbin/modprobe -r mmc_block; /sbin/modprobe --first-time -r --ignore-remove sdhci_pci
remove sdhci /sbin/modprobe -r mmc_block; /sbin/modprobe --first-time -r --ignore-remove sdhci
install sdhci /sbin/modprobe --first-time --ignore-install sdhci && { /sbin/modprobe mmc_block; /bin/true; }
alias enp0s29u1u2 cdc_ether
Marja Van Waes 2018-03-17 17:35:14 CET

CC: sysadmin-bugs => marja11, zen25000
Assignee: bugsquad => mageiatools
Source RPM: drakxtools-16.104-1.mga5 => drakxtools-16.104-1.mga5, grub2
Component: Release (media or process) => RPM Packages
Summary: drakboot crashed => drakboot crashed when trying to switch from grub to grub2 (Can't use an undefined value as a HASH reference at /usr/lib/libDrakX/any.pm line 644. )

Comment 5 jacques mazzega 2018-03-23 22:45:45 CET
I succeded to pass from grub to grub2 for the linux, but impossible to load windows, even if I delete
parttool -hidden . What is your concil ?

menuentry 'Windows7  (sur /dev/sda2)' --class windows --class os  'osprober-chain-5E52DB4452DB1F97' {
 insmod part_msdos
 insmod ntfs
 set root='hd0,msdos2'
 if [ x = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  5E52DB4452DB1F97
 else
   search --no-floppy --fs-uuid --set=root 5E52DB4452DB1F97
 fi
# parttool  hidden-
 chainloader +1
}
Comment 6 Marja Van Waes 2018-10-07 14:58:32 CEST
Hi Jacques,

Thank you for having taken the needed time to report this issue!

This bug was filed against Mageia 5. Did it get fixed? If so, please change its status to RESOLVED - FIXED.

If it didn't, then we regret that we weren't able to fix it in Mageia 5. Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/
It continued to get limited extended support since then, but that support has now ended, too.
As a result we are closing this bug report as OLD.


Note that we are a community distribution, which means that we, the Mageia users, make Mageia together in our free time. If you'd like to help some of our packages, then please consider becoming a Mageia packager https://wiki.mageia.org/en/Becoming_a_Mageia_Packager

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