Bug 9849 - Mageia 3 RC DVD x86-64 installer can not install bootloader (error: add_entry at /usr/lib/libDrakX/bootloader.pm line 656.)
Summary: Mageia 3 RC DVD x86-64 installer can not install bootloader (error: add_entry...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: 3
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 9681 9894 9907 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-24 12:51 CEST by Y.LE_NY
Modified: 2013-04-30 15:48 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
report bug file created by "bug" command line (225.48 KB, application/gzip)
2013-04-26 22:42 CEST, Y.LE_NY
Details
grub2 grub.cfg configuration file from my CAE Linux 2010 installation (7.63 KB, text/plain)
2013-04-27 15:23 CEST, Y.LE_NY
Details
grub legacy menu entries file created by Mageia 3 installer (3.17 KB, text/plain)
2013-04-27 15:33 CEST, Y.LE_NY
Details

Description Y.LE_NY 2013-04-24 12:51:59 CEST
Description of problem:
Mageia 3 RC DVD x86-64 installer can not install bootloader.
I have not this problem with Mageia 2 installer.
If grub 2.00 is used by default by Mageia 3 DVD installer,
can you add an option where the user can choose grub 0.97 that works fine in mageia 2 for my computer 
or grub 2.00 that is in Mageia 3 ?

Version-Release number of selected component (if applicable):
Mageia 3 RC DVD x86-64 installer

How reproducible:
see below

Steps to Reproduce:


0.Install Mageia with default options and french language and french keyboard (azerty)

1. Window : media selection
Selected options :
* core release 
* nonfree release

2.Window : windows manager selection
- UNselected options :
  kde and gnome
- Selected options :
  custom
  
3.Window : package groups selection
 I click on the button "unselect all" and next I click on the button "next".

4.Window : Installation type
- Selected options :
 with X, install suggested packages, with basic documentation (recommanded)
- UNselected options :
 minimal installation
and I click on the button "Next"

5.Process Installation packages start ....

6.Window : Users management
I select xguest account
but DVD Mageia installer said "required xguest package is missing"
--> a minor bug to fix but it is not for this bug that I have opened this bug ticket.

7.Window : bootloader preparation window, wait a moment....

8.Window : Error window
Message : "An error is occured : add_entry"
--> This is a BIG bug, mageia 3 installation process failed completely with this bootlader installation problem.
I can not go to the end of the  mageia 3 installation process.
Please fix this bug or I need to stay with Mageia 3 until Mageia 4 release.

Note : the bug command does not work, I enter bug program in command line in the bash interpreter and I have nothing on my USB key. I saw blinking led on my usb key when I use bug command line but I found no log file on the usb key.
My usb key use fat32 filesystem that is supported by Linux. No ?

I will retry this evening (france). If you want some information that I can read in Mageia console (Alt+Fx) and rewrite in this ticket, ask me then. 

Reproducible: 

Steps to Reproduce:
Comment 1 Y.LE_NY 2013-04-24 13:56:59 CEST
The same problem as 
http://www.pclinuxos.com/forum/index.php?topic=108995.0 ????
Comment 2 Y.LE_NY 2013-04-26 22:42:52 CEST
Created attachment 3822 [details]
report bug file created by "bug" command line

report bug file created by "bug" command line
Comment 3 Y.LE_NY 2013-04-26 22:44:33 CEST
error part in `setupBootloader' step :

* starting step `setupBootloader'
* to put in /mnt/etc/modprobe.preload cx8800, evdev
* modify_append:  nokmsboot resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot splash quiet resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot failsafe resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* running: /sbin/display_driver_helper --is-kms-allowed with root /mnt
* modify_append:  nokmsboot resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot splash quiet resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* modify_append:  nokmsboot failsafe resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* bootloader::suggest_onmbr: type grub, onmbr 1, unsafe 1
* current labels: linux windows Mandriva Linux (Official) Linux sda14 alt_Linux sda14 alt2_Linux sda14 alt3_Linux sda14 alt4_Linux sda14 alt5_Linux sda14 alt6_Linux sda14 alt7_Linux sda14 alt8_Linux sda14 alt9_Linux sda14
* looking for configured grub on partitions sda2 sda9 sda14 sdb5 sdb9
* find_root_parts found sda2: Mandriva Linux (Official) for i586
* found /etc/issue: Ubuntu 10.04.1 LTS  (removed: \n \l)
* find_root_parts found sdb9: Mandriva Linux (Official) for i586
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14
* weird case for grub conf in sda14, keeping '/' from sda14
* don't know what to do with Ubuntu 10.04.1 LTS  (sda14)
* current labels: linux windows Mandriva Linux (Official) Linux sda14 alt_Linux sda14 alt2_Linux sda14 alt3_Linux sda14 alt4_Linux sda14 alt5_Linux sda14 alt6_Linux sda14 alt7_Linux sda14 alt8_Linux sda14 alt9_Linux sda14
* entries Linux sda14 do not have same initrd: (hd0,1)/boot/initrd.img ne /boot/initrd.img-2.6.32-24-generic
* entries alt_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_2010.1_failsafe root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 failsafe ne /boot/vmlinuz BOOT_IMAGE=linux root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa splash=silent vga=788
* entries alt2_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_2010.1_nonfb root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa ne /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_2010.1_failsafe root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 failsafe
* entries alt3_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_2010.1 root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa splash=silent vga=788 ne /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_2010.1_nonfb root=UUID=07b93c58-5e9c-45f0-8830-cc4d7c25a062 resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* entries alt4_Linux sda14 do not have same initrd: (hd0,9)/boot/initrd-2.6.35.1-desktop-1mnb.img ne (hd0,1)/boot/initrd.img
* entries alt5_Linux sda14 do not have same initrd: (hd0,9)/boot/initrd.img ne (hd0,9)/boot/initrd-2.6.35.1-desktop-1mnb.img
* entries alt6_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c failsafe ne /boot/vmlinuz BOOT_IMAGE=linux root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa splash=silent vga=788
* entries alt7_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_20110_(Cooker)_- root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa ne /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c failsafe
* entries alt8_Linux sda14 do not have same linux: /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_20110_(Cooker)_- root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa splash=silent vga=788 ne /boot/vmlinuz BOOT_IMAGE=Mandriva_Linux_20110_(Cooker)_- root=UUID=02a64b7c-b7a4-4751-af85-b16643b6fe5c resume=UUID=1f5ebdab-e9fa-4e58-919d-8f5a1d3442aa
* entries alt9_Linux sda14 do not have same initrd: /boot/initrd.img-2.6.32-24-generic ne (hd0,9)/boot/initrd.img
* step "setupBootloader" took: 0:00:07
* error: add_entry at /usr/lib/libDrakX/bootloader.pm line 656.
Y.LE_NY 2013-04-26 22:45:07 CEST

Summary: Mageia 3 RC DVD x86-64 installer can not install bootloader => Mageia 3 RC DVD x86-64 installer can not install bootloader (error: add_entry at /usr/lib/libDrakX/bootloader.pm line 656.)

Y.LE_NY 2013-04-26 22:46:14 CEST

CC: (none) => thierry.vignaud

Comment 4 Thierry Vignaud 2013-04-26 22:52:40 CEST
Could you attach your /boog/grub/menu.lst?

Thx for the link (PCLinuxOs is a bad downstream that never contributed back...)

Keywords: (none) => NEEDINFO

Comment 5 Y.LE_NY 2013-04-26 22:58:04 CEST
More information to find the bug :

/mnt/caelinux/ is the partition for CAE Linux 2010 (CAE Linux 2010 source : http://www.caelinux.com/CMS/index.php?option=com_content&view=article&id=49:caelinux-2010&catid=69&Itemid=41= ). 
CAELinux 2010 is built on the basis of Ubuntu 10.04 LTS AMD64 distribution with the latest updates.
GRUB 2 is the default boot loader and manager for Ubuntu since version 9.10 (Karmic Koala) (source : https://help.ubuntu.com/community/Grub2).
Comment 6 Y.LE_NY 2013-04-26 23:08:34 CEST
(In reply to Thierry Vignaud from comment #4)
> Could you attach your /boog/grub/menu.lst?
In my folder /boot/grub (and /mnt/boot/grub in the bash 4.3 shell in Mageia 3 RC installer), I have NO /boog/grub/menu.lst file. I think that the Mageia 3 RC installer can not create it.
The only file that I have in /boot/grub folder is :  /boot/grub/menu.lst.example , 1099 bytes, date 20 january 2013, hour 22h53 ; 

> Thx for the link (PCLinuxOs is a bad downstream that never contributed
> back...)
OK
Comment 7 Y.LE_NY 2013-04-26 23:11:51 CEST
@Thierry 

Do you want more information to fix this bug ?
Do you want that I will do some command line and give you the results ?

For me, this bug is a big problem because I can not install Mageia 3 and I hope that it will be fixed before final release.
Comment 8 Thierry Vignaud 2013-04-27 12:13:58 CEST
Yes: does "drakboot --boot" works for you?
If no, does changing " < 10" into " < 100" on line 627 in /usr/lib/libDrakX/bootloader.pm makes it work?
Comment 9 Y.LE_NY 2013-04-27 15:23:26 CEST
Created attachment 3828 [details]
grub2 grub.cfg configuration file from my CAE Linux 2010 installation

grub2 grub.cfg configuration file from my CAE Linux 2010 installation that is in /mnt/caelinux//boot/grub/grub.cfg in sda14
Comment 10 Y.LE_NY 2013-04-27 15:27:19 CEST
Hello Thierry,

I found a workaround for my problem and I have installed Mageia 3,
but I think that you need to improve /usr/lib/libDrakX/bootloader.pm
to avoid this problem for others users that have already a grub 2 installation on their harddisk
and want to install Mageia 3.

My workaround tip :

1) Window : bootloader preparation window, wait a moment....

2) Window : Error window
Message : "An error is occured : add_entry"

3) Now I go in the bash 4.2 shell terminal console by using the following keys with
my keyboard : CTRL + ALT + F2

4) As you can see in my message in this ticket : " Y.LE_NY 2013-04-26 22:44:33 CEST ", I have the following error 
"* could not recognise the distribution for /mnt/caelinux//boot/grub/grub.cfg in sda14",
then I choose to rename this file" in *.bak to avoid the bootloader.pm perl script find it :
mv /mnt/caelinux/boot/grub/grub.cfg /mnt/caelinux/boot/grub/grub.cfg.BAK

5) I come back in the previous "Window : Error window" with the keyboard keys : CTRL+ALT+F7 

6) I click on the button "OK" in this error page and now all works fine and Mageia 3 installer can install 
the bootloader with no problems.

For you, Thierry, and to avoid this problem for others users that have already a grub 2 installation on their harddisk
and want to install Mageia 3, what is it the best improvement ?
* rename all Grub2 grub.cfg files on the user harddisk in grub.cfg.BAK files
or
* ignore all Grub2 grub.cfg files on the user harddisk that are not in the / (root) partition or filesystem used by Mageia 3.

Note : With this workaround, Mageia 3 does not create a clean grub menu, this menu is polluted by erroneous entries.
I will send you this file created by mageia 3 installer. 

I hope that this information will help you to have a better and strong bootloader.pm perl script, our goal : Mageia at the first place at distrowatch.com.
Comment 11 Y.LE_NY 2013-04-27 15:33:59 CEST
Created attachment 3829 [details]
grub legacy menu entries file created by Mageia 3 installer

grub legacy menu entries file created by Mageia 3 installer
Mageia 3 does not create a clean grub menu, this menu is polluted by erroneous entries.
I will send you this file created by mageia 3 installer.
Thierry Vignaud 2013-04-27 16:45:53 CEST

Attachment 3829 mime type: application/octet-stream => text/plain

Thierry Vignaud 2013-04-27 16:46:03 CEST

Attachment 3828 mime type: application/octet-stream => text/plain

Comment 12 Thierry Vignaud 2013-04-27 17:02:22 CEST
What about what I asked in comment #8?
- rename back your grub2 config without .bak,
- save your menu.lst: "mv /boot/grub/menu.lst{,.OK}"
- try running "drakboot --boot"
Comment 13 Thierry Vignaud 2013-04-27 17:33:16 CEST
*** Bug 9681 has been marked as a duplicate of this bug. ***

CC: (none) => shailendertk

Comment 14 Thierry Vignaud 2013-04-27 17:33:33 CEST
Fixed in SVN

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

Comment 15 Y.LE_NY 2013-04-27 18:25:31 CEST
(In reply to Thierry Vignaud from comment #8)
> Yes: does "drakboot --boot" works for you?
Yes after installing Mageia 3.
See below.

>If no, does changing " < 10" into " < 100" on line 627 in /usr/lib/libDrakX
>/bootloader.pm makes it work?
I did no test with value 100.


(In reply to Thierry Vignaud from comment #12)
> What about what I asked in comment #8?
> - rename back your grub2 config without .bak,
OK, done
> - save your menu.lst: "mv /boot/grub/menu.lst{,.OK}"
OK, done 
> - try running "drakboot --boot" 

The results when choosing Grub 2 in the drakboot gui installer (installation process works fine in the gui without error) :

[root@localhost grub]# drakboot --version
Drakxtools version 15.44

[root@localhost grub]# drakboot --boot
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
cannot get info for device (7:0:0:0) at /usr/lib/libDrakX/detect_devices.pm line 222.
Gtk-CRITICAL **: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed at /usr/lib/libDrakX/interactive/gtk.pm line 524.
Gtk-CRITICAL **: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed at /usr/lib/libDrakX/interactive/gtk.pm line 524.
getting exclusive lock on rpm
getting lock on urpmi
using mirror http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/x86_64
examen de la liste de synthèse [/var/lib/urpmi/synthesis.hdlist.Core Release.cz]
examen de la liste de synthèse [/var/lib/urpmi/synthesis.hdlist.Nonfree Release.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core Release2/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Release2/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Nonfree Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Tainted Updates/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Release/synthesis.hdlist.cz]
examen de la liste de synthèse [/var/lib/urpmi/Core 32bit Updates/synthesis.hdlist.cz]
Pour satisfaire les dépendances, les paquetages suivants vont être installés :
=> ok(auto)
found cdrom Core Release mounted in /media/Mageia-3 RC-x86_64


installation de os-prober-1.57-5.mga3.x86_64.rpm grub2-mageia-theme-2.00-41.mga3.x86_64.rpm grub2-2.00-41.mga3.x86_64.rpm depuis /media/Mageia-3 RC-x86_64/x86_64/media/core
starting installing packages
transaction créée pour l'installation sur / (remove=0, install=0, upgrade=3)
Création de grub.cfgâ¦
Thème trouvé : /boot/grub2/themes/maggy/theme.txt
Image Linux trouvée : /boot/vmlinuz-desktop
Image mémoire initiale trouvée : /boot/initrd-desktop.img
Image Linux trouvée : /boot/vmlinuz-3.8.10-desktop-1.mga3
Image mémoire initiale trouvée : /boot/initrd-3.8.10-desktop-1.mga3.img
umount: /var/lib/os-prober/mount : cible occupée.
       (Dans certains cas, des renseignements sur les processus utilisant
        le périphérique sont accessibles avec lsof(8) ou fuser(1))
rmdir: échec de suppression de « /var/lib/os-prober/mount »: Périphérique ou ressource occupé
rmdir: échec de suppression de « /var/lib/os-prober/mount »: Périphérique ou ressource occupé
Windows NT/2000/XP trouvé sur /dev/sda1
Ubuntu 10.04.1 LTS (10.04) trouvé sur /dev/sda14
Mandriva Linux 2010.2 (2010.2) trouvé sur /dev/sda2
Mandriva Linux 2009.1 (2009.1) trouvé sur /dev/sdb9
fait
unlocking urpmi database
unlocking rpm database

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.

Failed to issue method call: No such file or directory

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

      If you want to list systemd services use 'systemctl list-unit-files'.
      To see services enabled on particular target use
      'systemctl list-dependencies [target]'.
Comment 16 Thierry Vignaud 2013-04-30 15:47:20 CEST
*** Bug 9907 has been marked as a duplicate of this bug. ***

CC: (none) => pablo.sartor

Comment 17 Thierry Vignaud 2013-04-30 15:48:57 CEST
*** Bug 9894 has been marked as a duplicate of this bug. ***

CC: (none) => laszlo.pajor


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