Bug 8390 - bootloader.pm is looking for non-existent binary program grub2, not package grub2
Summary: bootloader.pm is looking for non-existent binary program grub2, not package g...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard: 3beta1
Keywords:
Depends on:
Blocks: 416
  Show dependency treegraph
 
Reported: 2012-12-14 21:58 CET by Dave Hodgins
Modified: 2012-12-16 22:13 CET (History)
4 users (show)

See Also:
Source RPM: drakxtools-15.11-1.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Dave Hodgins 2012-12-14 21:58:04 CET
In Mageia 3 beta 1, trying to install grub2 fails with the message
"Mandatory package grub2 is missing".

The problem is that /usr/lib/libDrakx/bootloader.pm is looking for
a binary program grub, lilo, or grub2, but there is no program
called grub2.

Simplest fix is to modify the grub2 package with
ln /sbin/grub2-install /sbin/grub2

Proper fix is to modify the message in
/usr/lib/libDrakX/do_pkgs.pm to
"Mandatory program %s is missing"
so it's easier to figure out what's wrong, and to modify
/usr/lib/libDrakX/bootloader.pm
to look for grub2-install, rather then grub2, as the program name.

I've confirmed this by running the ln command in a live dvd before
installing to the hard drive.

There's still a problem with the grub2 configuration, as it drops to
a grub shell on reboot, but the fix for that will require more digging.
Dave Hodgins 2012-12-14 21:59:12 CET

CC: (none) => ennael1
Whiteboard: (none) => 3beta1

Comment 1 Thierry Vignaud 2012-12-14 22:12:55 CET
No that's not the issue (we look for grub2-reboot) but as we are not yet able to read back grub2 config, we weren't installing grub2

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

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

Comment 2 Dave Hodgins 2012-12-14 22:40:43 CET
I don't agree.  I've now successfully booted from a vb install, after installing
from a live dvd (kde i586).  To do so, I had to do the following ...

Before installing to the hard drive
ln /sbin/grub2-install /sbin/grub2

After installing to the hard drive, during which I selected grub2 on sda, ...
mkdir /a1
mount -t auto /dev/sda1 /a1
mount --bind /run /a1/run
(same with /dev, /proc, and /sys)
chroot /a1
grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-install /dev/sda

Then, on reboot, grub2 is working.

So the problems with bootloader.pm are that it's looking for program called
grub2, which doesn't exist, and it's failing to run the grub2-mkconfig
command.  I'm not sure if the grub2-install is needed after the grub2-mkconfig
command, or not.
Comment 3 Dave Hodgins 2012-12-14 22:49:31 CET
Bug 8366 was about grub2-install not being available in stage2.

This bug is about bootloader.pm not working properly, when grub2 is
available, and is not fixed, so I'm reopening this bug.

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

Barry Jackson 2012-12-14 23:47:12 CET

CC: (none) => zen25000

claire robinson 2012-12-14 23:48:41 CET

CC: (none) => eeeemail, tmb

Comment 4 Thierry Vignaud 2012-12-15 02:31:47 CET
Indeed a check was wrong.

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

Comment 5 Dave Hodgins 2012-12-15 03:09:59 CET
Workaround for using grub2 with the classic installer.

After trying to install grub2, and getting the message
"Mandatory package grub2 is missing"
Alt+ctrl+f2
ln /mnt/sbin/grub2-install /mnt/sbin/grub2
Alt+ctrl+f7
Select ok twice.
Comment 6 Thierry Vignaud 2012-12-15 03:29:32 CET
This is already fixed in drakx-installer-stage2-15.13
Manuel Hiebel 2012-12-16 22:13:07 CET

Blocks: (none) => 416


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