[Bug 796919] New: Grub 2 Additional Advanced Menu Option in Multi-Drive System does not show Kernel Version in Menu Name
https://bugzilla.novell.com/show_bug.cgi?id=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c0 Summary: Grub 2 Additional Advanced Menu Option in Multi-Drive System does not show Kernel Version in Menu Name Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: jmcdaniel3@austin.rr.com QAContact: jsrain@suse.com Found By: --- Blocker: --- Created an attachment (id=519069) --> (http://bugzilla.novell.com/attachment.cgi?id=519069) This is a resulting Grub 2 Menu file, grub.cfg User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 In Grub 2 or Grub 2 EFI, if two or more hard drives include openSUSE installations, the secondary hard drive kernel versions are not displayed with the OS name and location. Reproducible: Always Steps to Reproduce: 1. Install openSUSE onto two or more hard drives in the same system. 2. Run Update Grub 2 Menu that runs OS Prober 3. Restart System and look at the menu options for the secondary hard drive copy of openSUSE Actual Results: ALL Grub 2 menu entries that show up in a secondary hard drive Advanced menu have the exact same name, over and over again. You can not determine the kernel version attached to each advanced menu entry. Expected Results: The Secondary Advanced menus entries should include the kernel version just as the main Advanced menu does. Further, the hard drive device name, should be attached to the Advanced menu option name instead of being attached to each and every advanced menu entry option name. Grub2 Image, Main Menu: http://paste.opensuse.org/view/download/19827334 Grub2 Image, Secondary Advanced Menu: http://paste.opensuse.org/view/download/72456289 openSUSE Forum Thread: https://forums.opensuse.org/english/get-technical-help-here/install-boot-log... -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c1 --- Comment #1 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-06 19:45:53 UTC --- Which bootloader is used by Linux installation with root on /dev/sdf4 (which was added by os-prober)? Could you please attach menu.lst and grub.cfg from this installation (whatever is available)? -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c2 --- Comment #2 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-06 23:10:45 UTC --- Created an attachment (id=519078) --> (http://bugzilla.novell.com/attachment.cgi?id=519078) grub.cfg from grub2-efi installation This is a grub.cfg menu file created by Grub2-efi on a GPT Partitioned and opensuse ESP booted hard disk. It is seeing the separate hard drive that my main openSUSE is installed and and the one used to start this bug report. YOu now have both grub.cfg files. -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c3 --- Comment #3 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-06 23:17:35 UTC --- This is the info on the openSUSE installation shown on /dev/sdf4: I have added a new file attachment that is the grub.cfg file created by grub2-efi installed on the same PC. but into a GPT partitioned disk and using an opensuse ESP boot partition. Grub2-efi Image, Main Menu: http://paste.opensuse.org/view/download/40366259 Grub2-efi Image, Secondary Advanced Menu: http://paste.opensuse.org/view/download/81477003 This information is also present in this openSUSE forum message thread: https://forums.opensuse.org/english/get-technical-help-here/install-boot-log... -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c4 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |aj@suse.com, | |hippolyte@shaw.ca InfoProvider| |jmcdaniel3@austin.rr.com --- Comment #4 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-07 13:28:34 UTC --- Well ... 1. it did not know anything about /boot/grub2(-efi) (already reported as bnc#758732) 2. Parsing of grub.cfg created by current GRUB2 was mostly broken 3. Filtering of own entries was broken for non-English locale 4. As top-level entries did not have os-prober marker, they would be in turn included by another os-prober invocation. Please test updated grub2/os-prober. zypper ar obs://home:arvidjaar:bnc:796919/openSUSE_12.2_Update bnc796919 zypper refresh bnc796919 zypper dup -r bnc796919 It works with your grub.cfg here. Cc mchang and aj as maintainers and PTA as one having lot of experience with os-prober. Agnelo, could you test packages? You have may different systems installed as far as I know. Should also fix bnc#758732. -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c5 James McDaniel <jmcdaniel3@austin.rr.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jmcdaniel3@austin.rr.com | --- Comment #5 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-08 01:47:06 UTC --- I have installed the updates to both copies of openSUSE, the one on sdb using grub2 and on sdf using Grub 2 efi. Here are photos of the resulting modification: Grub2-efi Main Menu on sdf: http://paste.opensuse.org/44903312 Grub2-efi Advanced Menu on sdf: http://paste.opensuse.org/130227 Grub2 Main Menu on sdb: http://paste.opensuse.org/28757796 Grub2 Advanced Menu on sdb: http://paste.opensuse.org/57515090 I will also attache the actual two new Grub.cfg files that have been created. As to the requests for the fix, 1) I see that in the Grub2 Main Menu for the secondary advanced menu, the drive partition is shown from which it came. 2) Next, on the Secondary Advanced Menu, I see kernel versions, which is all very good. In the actual Secondary Advanced Menu of Grub2-efi of sdf, I question the need to have the highest kernel version listed without and with its kernel version shown. I would simply leave out the listing with no kernel version shown. Grub2-efi on sdf is picking up kernel recovery entries from drive sdb I see and only one openSUSE kernel listing with no kernel version shown. In the actual Secondary Advanced Menu of Grub2, I also question the need to have the highest kernel version listed without and with its kernel version shown. I also see yet another entry that includes the bit type. I would simply leave out any listing with no kernel version shown. Grub2-efi on sdf is NOT picking up kernel recovery entries and shows two openSUSE kernel listing with no kernel version shown. As always, tell me if you need more information and thanks so much for your help and attention to this problem report. Thank You, -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c6 --- Comment #6 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-08 01:49:46 UTC --- Created an attachment (id=519247) --> (http://bugzilla.novell.com/attachment.cgi?id=519247) New grub.cfg file from openSUSE 12.2 with modified Grub files on Grub2-efi of sdf This shows the resulting grub.cfg file on the sdf drive of grub2-efi after the requested modifications have been made. -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c7 --- Comment #7 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-08 01:52:06 UTC --- Created an attachment (id=519248) --> (http://bugzilla.novell.com/attachment.cgi?id=519248) New grub.cfg file from openSUSE 12.2 with modified Grub files on Grub2 of sdb This is the resulting grub.cfg file after the requested modifications have been made to Grub2 on the sdb drive partition. -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c8 --- Comment #8 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-08 06:53:23 UTC --- *** Bug 758732 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=758732 -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c9 --- Comment #9 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-08 07:39:52 UTC --- (In reply to comment #5)
As to the requests for the fix, 1) I see that in the Grub2 Main Menu for the secondary advanced menu, the drive partition is shown from which it came. 2) Next, on the Secondary Advanced Menu, I see kernel versions, which is all very good.
Good. So I consider this bug fixed and submit requests for Factory. grub2: SR#147483 os-prober: SR#147484
In the actual Secondary Advanced Menu of Grub2-efi of sdf, I question the need to have the highest kernel version listed without and with its kernel version shown. I would simply leave out the listing with no kernel version shown. Grub2-efi on sdf is picking up kernel recovery entries from drive sdb I see and only one openSUSE kernel listing with no kernel version shown.
In the actual Secondary Advanced Menu of Grub2, I also question the need to have the highest kernel version listed without and with its kernel version shown. I also see yet another entry that includes the bit type. I would simply leave out any listing with no kernel version shown. Grub2-efi on sdf is NOT picking up kernel recovery entries and shows two openSUSE kernel listing with no kernel version shown.
Well, that's how upstream version works. It is really enhancement request which probably should be discussed with upstream first. In any case it has to go into another bug or feature request. -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c10 --- Comment #10 from Agnelo de la Crotche <hippolyte@shaw.ca> 2013-01-08 08:51:13 UTC --- I don't have access to an openSUSE UEFI system (an it would still be 12.1 anyway). Is the issue discussed here related to os-prober or to Grub2-efi? In other words: what do you need to change, the output of os-prober or the way this output is parsed by Grub2 os-prober script? or both? Andrej, did you make a new patch for os-prober I should be aware of? -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c11 --- Comment #11 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-08 09:15:11 UTC --- (In reply to comment #10)
I don't have access to an openSUSE UEFI system
This is unrelated to UEFI
Is the issue discussed here related to os-prober or to Grub2-efi?
os-prober and grub2 (specifically, 30_os-prober script)
In other words: what do you need to change, the output of os-prober or the way this output is parsed by Grub2 os-prober script? or both?
First three changes in os-prober, forth in 30_os-prober script. There is no change in how it parses output, just change how it builds menu titles.
Andrej, did you make a new patch for os-prober I should be aware of?
Probably, yes :) -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c12 --- Comment #12 from Agnelo de la Crotche <hippolyte@shaw.ca> 2013-01-08 09:43:57 UTC --- (In reply to comment #11)
(In reply to comment #10)
I don't have access to an openSUSE UEFI system
This is unrelated to UEFI
Is the issue discussed here related to os-prober or to Grub2-efi?
os-prober and grub2 (specifically, 30_os-prober script)
You know that I use my own one (30_os-prober_alt)? :-(
In other words: what do you need to change, the output of os-prober or the way this output is parsed by Grub2 os-prober script? or both?
First three changes in os-prober, forth in 30_os-prober script. There is no change in how it parses output, just change how it builds menu titles.
Menu titles have been bothering me too. That's why I applied similar (but probably not identical changes). But my problem was not to deal with mutliple openSUSE kernels, rather with multiple distros, as well as getting rid of specific entries based of keywords - using this in /etc/grub/default: GRUB_OS_PROBER_SKIP="recovery failsafe fallback single-user" or sorting distros in a given order (GRUB_OS_PROBER_SORT) Maybe you could take a look at my /etc/grub.d/30_os-prober_alt (installed with updategrub in my repo) and see what could be useful. It does several things mentioned several times in the forum.
Andrej, did you make a new patch for os-prober I should be aware of?
Probably, yes :)
I'll have to take a look then ... -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-01-08 15:00:23 CET --- This is an autogenerated message for OBS integration: This bug (796919) was mentioned in https://build.opensuse.org/request/show/147542 Factory / os-prober -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c14 --- Comment #14 from James McDaniel <jmcdaniel3@austin.rr.com> 2013-01-20 02:31:48 UTC --- I thank everyone for their input and for their help. It sounds like we will get this fix added to the new openSUSE 12.3 then which was my hope. You can mark this as resolved as far as I am concerned. Thank You, -- 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=796919 https://bugzilla.novell.com/show_bug.cgi?id=796919#c15 Andrey Borzenkov <arvidjaar@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #15 from Andrey Borzenkov <arvidjaar@gmail.com> 2013-01-20 06:38:44 UTC --- OK, mark as fixed. Regarding your suggestion in comment #5 - feel free to open separate request for this issue. -- 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.
participants (1)
-
bugzilla_noreply@novell.com