[Bug 763578] New: grub2: no config created when installed aside of the grub legacy version
https://bugzilla.novell.com/show_bug.cgi?id=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c0 Summary: grub2: no config created when installed aside of the grub legacy version Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: cobexer@gmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0 when grub2 gets installed aside of grub legacy there is no config created for it, and if i try it out then there is nothing to boot in the grub2 menu rpm -qa|grep grub grub-0.97-183.2.x86_64 grub2-1.99-20.1.x86_64 current factory Reproducible: Always Steps to Reproduce: 1. grub2 installed aside of grub legacy 2. 3. Actual Results: no grub2 config to test and decide if it works or not Expected Results: grub legacy config migrated to grub2 so it can actually be tested and decidec whether switching will work -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |mchang@suse.com -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c1 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |aj@suse.com --- Comment #1 from Michael Chang <mchang@suse.com> 2012-05-23 10:52:00 UTC --- Christoph, Currently we don't generate Grub2's config during package installation, to test you need to do it manually. $ grub2-mkconfig -o /boot/grub2/grub.cfg About whether we should do that in %post or not, better to ask AJ's opinion as he implemented the testing via grub. :) Andrea, do you have any comment for this? PS. I know grub2-menulst2cfg but it's not work well somehow in my tetsing. However you could try it to migrate config from legacy config. -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c2 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |aj@suse.com InfoProvider|aj@suse.com | --- Comment #2 from Andreas Jaeger <aj@suse.com> 2012-05-23 12:13:13 UTC --- It's really not intented that grub2 by default creates a config, you need to setup it first - and this should be done via yast2 bootloader. -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c3 --- Comment #3 from Christoph Obexer <cobexer@gmail.com> 2012-05-23 18:48:13 UTC --- but whats the point of installing grub2 onto machines automatically without automatically generating a config? if i need to test and setup maually - then i should also choose to install grub2 manually and if it automatically comes to existing systems, it should work. otherwise the conclusion will be GRUB2 doesn't work, it doesn't even show anything to boot... thats bad UX imo -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c4 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #4 from Andreas Jaeger <aj@suse.com> 2012-05-24 10:23:59 UTC --- What should happen if you install grub and grub2 at the same time? We have not done this in the past for grub at all but force the user to do define themselves how to set it up. Changing this would come as a big surprise. If you disagree, bring it up on the opensuse-factory mailing list as a policy change with some very good support. -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c5 --- Comment #5 from Christoph Obexer <cobexer@gmail.com> 2012-05-26 14:32:20 UTC --- (In reply to comment #4)
What should happen if you install grub and grub2 at the same time?
well currently grub2 gets installed aside of grub legacy and has an entry in the grub legacy config that boots grub2 that has no config and thus fails to be useful so your question is really not good, grub2 got installed without me explicitly doing so, and thats the reason for this bug report because the way it is installed currently makes no sense at all. either it gets installed onto my system aside of grub legacy and it gets a working config, or it doesn't get installed without me doing it.
We have not done this in the past for grub at all but force the user to do define themselves how to set it up.
"We have not done this in the past..." is not going to improve openSuSE in the future, but this is completely off topic to this bug report.
Changing this would come as a big surprise. If you disagree, bring it up on the opensuse-factory mailing list as a policy change with some very good support.
I feel misunderstood, as per comment #1 you decided it was a good idea to create an entry for grub2 in the grub legacy config, and thats indeed great - but not useful until i ran "grub2-mkconfig -o /boot/grub2/grub.cfg". it took me like 5 to 10 minutes to find that out, and thats a waste of my time because you could have done that in grub2's %post. also you answered that question yourself, i mean you implemented the answer:
What should happen if you install grub and grub2 at the same time? but you didn't include the missing 10% or so to call grub2-mkconfig.
hope this clarifies this bug report -- 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=763578 https://bugzilla.novell.com/show_bug.cgi?id=763578#c6 --- Comment #6 from Michael Chang <mchang@suse.com> 2012-07-05 06:29:47 UTC --- If we do grub2-mkconfig in %post would cause regression to bnc#768063. -- 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