Bug 2888 - Unbootable entry for Mageia in grub2 generated menu (kernel panic)
Summary: Unbootable entry for Mageia in grub2 generated menu (kernel panic)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2011-10-01 11:18 CEST by Ulrich Beckmann
Modified: 2012-05-12 15:34 CEST (History)
4 users (show)

See Also:
Source RPM: grub
CVE:
Status comment:


Attachments

Description Ulrich Beckmann 2011-10-01 11:18:34 CEST
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566102

The above linked Debian Bugreport is not yet solved. The description is not quite correct. The bug leads to a kernel panic in any case, also if Mageia or Mandriva is installed in primary partitions.

I tested the annexed Bugfix from François in my multiboot system. It did work, but I am not shure if it works in any case. There is no restriction to grub Legacy or menu.lst to be found.

Therefore I request a slight change in Mageia's menu.lst:

Please change the line 

initrd (hd0,10)/boot/initrd.img

to

initrd /boot/initrd.img

if / and /boot are located in the same partition.

Mageia would boot as before and the os-prober of grub2 would then generate a bootable entry in the configuration file of grub2.

Best regards,
Ulrich Beckmann
Manuel Hiebel 2011-10-01 19:34:25 CEST

Keywords: (none) => PATCH
Source RPM: (none) => grub

Comment 1 Manuel Hiebel 2011-11-12 21:42:30 CET
Set version to cauldron:
https://wiki.mageia.org/en/Triage_guide#Enhancement_requests

Version: 1 => Cauldron

Comment 2 Marja Van Waes 2012-01-05 23:24:06 CET
@ Ulrich

We don't have a grub maintainer, atm, but a very awake developer here (misc) was amazed that this patch wasn't sent upstream

Can you do that, please?

CC: (none) => marja11

Comment 3 Ulrich Beckmann 2012-01-06 10:32:17 CET
Hi Marja,

Thanks for your interest! I can't do that. It is still a workaround, no patch. Besides, I am not a team member. If I were a team member and maintainer, I won't be interested to support a program, which I don't use in my multi-boot environment and personally find obsolete or next to obsolete. I have no Cauldron installed to test.

I wrote this bug report, because I have seen 10 or more incidents in German or Brazilian forums. Sometimes the workarounds were not accepted, and Mandriva or Mageia were abandoned consecutively. I got tired with this bug.

I can only give a hint: The bug does not occur in openSuSE installations.

Best wishes,
Ulrich
Comment 4 Marja Van Waes 2012-01-06 12:34:58 CET
(In reply to comment #3)

> 
> I can only give a hint: The bug does not occur in openSuSE installations.
> 

@ Ulrich

Thanks for your reply and for the hint :)
Comment 5 Barry Jackson 2012-03-15 18:26:33 CET
(In reply to comment #2)
> @ Ulrich
> 
> We don't have a grub maintainer, atm, but a very awake developer here (misc)
> was amazed that this patch wasn't sent upstream
> 
> Can you do that, please?

Marja
Debian *is* the upstream for OS-prober AFAICT. It's not developed/maintained by grub2 people, and only Debian and derivatives seem to use it.
Since the above mentioned Debian bug (and another related http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614516) have been sat there for over a year now, it's fairly obvious that they are in no hurry to fix it.

I was involved with this just after mga1 was launched and spoke to one of the Debian devs (who is also involved with grub2) about it at the time, he did imply that it would be fixed.
https://forums.mageia.org/en/viewtopic.php?f=7&t=187&p=1292&hilit=ubuntu+boot+grub2#p1171

I like Ulrich's alternative fix which would certainly solve the issue from our end (despite the bug being in Debian) and make it considerably easier for Debian/Ubuntu users to try Mageia.

I will see if I can figure out a patch but leave it unassigned for now as I most probably won't know how ;)

Barry

CC: (none) => zen25000

Comment 6 Marja Van Waes 2012-03-15 18:47:18 CET
Thanks a lot for the explanation and for trying, Barry :)
Comment 7 Barry Jackson 2012-03-15 21:07:49 CET
(In reply to comment #6)
> Thanks a lot for the explanation and for trying, Barry :)

I just had a look at bootloader-config and friends, but the code is poorly documented and I know little about perl.
I think this may be one for tv as I notice he wrote part of it.
Comment 8 Marja Van Waes 2012-03-15 21:19:47 CET
(In reply to comment #7)

> 
> I just had a look at bootloader-config and friends, but the code is poorly
> documented and I know little about perl.
> I think this may be one for tv as I notice he wrote part of it.

Thanks again, cc'ing tv :)

@ Thierry

What do you think about Ulrich's fix? :

(In reply to comment #0)
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566102
> 
> The above linked Debian Bugreport is not yet solved. The description is not
> quite correct. The bug leads to a kernel panic in any case, also if Mageia or
> Mandriva is installed in primary partitions.
> 
> I tested the annexed Bugfix from François in my multiboot system. It did work,
> but I am not shure if it works in any case. There is no restriction to grub
> Legacy or menu.lst to be found.
> 
> Therefore I request a slight change in Mageia's menu.lst:
> 
> Please change the line 
> 
> initrd (hd0,10)/boot/initrd.img
> 
> to
> 
> initrd /boot/initrd.img
> 
> if / and /boot are located in the same partition.
> 
> Mageia would boot as before and the os-prober of grub2 would then generate a
> bootable entry in the configuration file of grub2.
> 
> Best regards,
> Ulrich Beckmann

CC: (none) => thierry.vignaud

Comment 9 Ulrich Beckmann 2012-04-22 12:21:25 CEST
@ Barry Jackson

os-prober is also included in openSUSE 12.2 (here milestone 2).

Please include os-prober as a package, even if not activated. You may call it buggy, but it at least finds every kernel in a multi-boot environment. I get used to edit my /boot/grub/grub.cfg, and os-prober provides templates for all entries. A great help, especially when you have LVM-partitions!

Best regards,
Ulrich
Comment 10 Barry Jackson 2012-04-23 01:51:38 CEST
(In reply to comment #9)
> @ Barry Jackson
> 
> os-prober is also included in openSUSE 12.2 (here milestone 2).
> 
> Please include os-prober as a package, even if not activated. You may call it
> buggy, but it at least finds every kernel in a multi-boot environment. I get
> used to edit my /boot/grub/grub.cfg, and os-prober provides templates for all
> entries. A great help, especially when you have LVM-partitions!
> 
> Best regards,
> Ulrich


Thanks for the info - I will look at openSUSE's package.

Barry
Miguel Barrera 2012-04-27 00:04:32 CEST

CC: (none) => mbarreraa

Comment 11 Barry Jackson 2012-05-01 11:39:30 CEST
(In reply to comment #9)
> @ Barry Jackson
> 
> os-prober is also included in openSUSE 12.2 (here milestone 2).
> 
> Please include os-prober as a package, even if not activated. You may call it
> buggy, but it at least finds every kernel in a multi-boot environment. I get
> used to edit my /boot/grub/grub.cfg, and os-prober provides templates for all
> entries. A great help, especially when you have LVM-partitions!
> 
> Best regards,
> Ulrich

I have found the bug in os-prober and sent a patch upstream \o/

I have adapted the SUSE spec and have packaged a patched version of os-prober which now works perfectly with current trunk grub2.
It creates bootable entries in grub.cfg for Mageia, Mandriva, PCLOS, Fedora, Ubuntu and Slack on my system. (No Win systems here to test against) 

I will import os-prober and grub2 to Cauldron when it re-opens after mga2 launch.

Ulrich - Thanks again for pointing me to the SUSE version.
 
Barry
Marja Van Waes 2012-05-01 18:24:46 CEST

Assignee: bugsquad => zen25000

Comment 12 Ulrich Beckmann 2012-05-12 15:14:38 CEST
Hi all,
the bug does not longer occur in Debian unstable.

Thanks, Barry
Best wishes,
Ulrich

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# apt-cache policy os-prober
os-prober:
  Instalado: 1.53
  Candidato: 1.53
  Tabela de versão:
 *** 1.53 0
        500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comment 13 Marja Van Waes 2012-05-12 15:34:47 CEST
(In reply to comment #12)
> Hi all,
> the bug does not longer occur in Debian unstable.
> 
> Thanks, Barry
> Best wishes,
> Ulrich
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> # apt-cache policy os-prober
> os-prober:
>   Instalado: 1.53
>   Candidato: 1.53
>   Tabela de versão:
>  *** 1.53 0
>         500 http://ftp.de.debian.org/debian/ unstable/main amd64 Packages
>         100 /var/lib/dpkg/status
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

So closing as fixed :)

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


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