[Bug 758732] New: linux-boot-prober doesn't read boot entries from openSUSE and Fedora Grub2.
https://bugzilla.novell.com/show_bug.cgi?id=758732 https://bugzilla.novell.com/show_bug.cgi?id=758732#c0 Summary: linux-boot-prober doesn't read boot entries from openSUSE and Fedora Grub2. Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 3 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: hippolyte@shaw.ca QAContact: jsrain@suse.com Found By: --- Blocker: --- Created an attachment (id=487645) --> (http://bugzilla.novell.com/attachment.cgi?id=487645) support for openSUSE and Fedora grub.cfg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 When linux-boot-prober scans for openSUSE and Fedora boot entries (for example), it doesn't even get to read the boot menu ($mpoint/boot/grub2/grub.cfg), because it looks for it in $mpoint/boot/grub/grub.cfg - where the boot menu is actually located on Debian/Ubuntu. As a consequence, os-prober generates a "minimal" boot entry, which is correct because it knows the partition and the kernel name, but misses all kernel boot parameters, because it could not read them from grub.cfg. The problem is not specific to openSUSE. It affects any distro making use of os-prober to scan fo other distros' kernels - including Ubuntu, which fails to read openSUSE and Fedora. However, Ubuntu boot entries are correct when scanned from anoter distro - because in this case, linux-boot-prober looks for grub.cfg in the right directory (/boot/grub/) I attached a patch which solves the issue. Reproducible: Always Steps to Reproduce: 1.# os-prober /dev/sda2:openSUSE 12.2 Milestone 2 (x86_64):SuSE:linux 2. # linux-boot-prober /dev/sda2 Actual Results: /dev/sda2:/dev/sda2::/boot/vmlinuz-3.3.0-2-desktop:/boot/initrd-3.3.0-2-desktop:root=/dev/sda2 /dev/sda2:/dev/sda2::/boot/vmlinux-3.3.0-2-desktop.gz::root=/dev/sda2 Expected Results: /dev/sda2:/dev/sda2:openSUSE, with Linux 3.3.0-2-desktop:/boot/vmlinuz-3.3.0-2-desktop:/boot/initrd-3.3.0-2-desktop:root=UUID=b5f05dbc-ff30-407a-893f-a445b436b2d3 video=1920x1080 resume=/dev/disk/by-uuid/8ae0e410-f8bc-47ee-a290-f9567f725566 splash=silent quiet showopts /dev/sda2:/dev/sda2:openSUSE, with Linux 3.3.0-2-desktop (recovery mode):/boot/vmlinuz-3.3.0-2-desktop:/boot/initrd-3.3.0-2-desktop:root=UUID=b5f05dbc-ff30-407a-893f-a445b436b2d3 single A patched version of os-prober 1.52 is building in OBS and will be availalbe in my repo: https://build.opensuse.org/package/show?package=os-prober&project=home%3Aplease_try_again ... whenever OBS is done - you never know if it takes minutes, hours, days... I ran os-prober on 12.1 to scan for 12.2. It's actually Milestone 3 (bug is discussed here: http://forums.opensuse.org/english/get-technical-help-here/pre-release-beta/...) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=758732
https://bugzilla.novell.com/show_bug.cgi?id=758732#c1
--- Comment #1 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=758732
https://bugzilla.novell.com/show_bug.cgi?id=758732#c
Jiri Srain
https://bugzilla.novell.com/show_bug.cgi?id=758732
https://bugzilla.novell.com/show_bug.cgi?id=758732#c2
--- Comment #2 from Agnelo de la Crotche
Agnelo,
Would you plan to fix the os-prober in factory? Seems like the patch is to your home project's os-prober that has new version than factory's (1.49) .. :)
All you need to do is to modify /usr/lib/linux-boot-probes/mounted/40grub2 so that it will look for grub.cfg in /boot/grub2 as well and not only in /boot/grub.
Best if that the patches could push into upstream, otherwise it would be maintenance burden when you upgrade factory's version, you have to manually port these patches to avoid regression.
This bug is fixed in version 1.53 for Fedora and has been pushed upstream. Thus I removed my patch (which did the same thing) in the version currently in my repo - which is the same as Fedora's version plus ufs2 support (we discussed in another bug report) Here's Fedora's patch: https://build.opensuse.org/package/view_file?file=os-prober-grub2-fedorafix.patch&package=os-prober&project=home%3Aplease_try_again&rev=91e658bdf6a8c760778258a5704a602b IMO you should apply this change to version 1.49 in factory. It wont' hurt. No need to pass it upstream. It has been done already. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=758732
https://bugzilla.novell.com/show_bug.cgi?id=758732#c3
Andrey Borzenkov
participants (1)
-
bugzilla_noreply@novell.com