[Bug 768063] New: empty /boot/grub2/grub.cfg written when grub is selected as bootloader
https://bugzilla.novell.com/show_bug.cgi?id=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c0 Summary: empty /boot/grub2/grub.cfg written when grub is selected as bootloader Classification: openSUSE Product: openSUSE 12.2 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: ohering@suse.com QAContact: jsrain@suse.com CC: carnold@suse.com Found By: --- Blocker: --- with 12.2-beta2 an empty /boot/grub2/grub.cfg is written even if grub is selected as bootloader. This happens in a Xen PV guest. Unfortunately this is a real issue (now that bug #766283 is fixed) because pygrub on the host tries a few common bootloader config file locations, and grub.cfg is probed before menu.lst. So it thinks that grub2 instead of grub is used in the guest. The empty file leads to a boot failure because obviously no kernel can be found. -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c Jiri Srain <jsrain@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsrain@suse.com |snwint@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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c1 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mchang@suse.com InfoProvider| |aj@suse.com --- Comment #1 from Michael Chang <mchang@suse.com> 2012-06-21 09:05:47 UTC --- I think it was caused by both grub and grub2 packages are installed (they're all shown in the pattern). Remove one of them would cause side effects I think (I do not dare to do that because it would be serious .. We need experts on kiwi or who holds knowledge about installation disks .. However, I can't find the reason we must package grub.cfg, before running grub2-install, /boot/grub2 is supposed to be "empty" since nothing for grub2 is initialized .. including the config. I would suggest to not package grub.cfg to fix this issue, but let's ask Andreas as he is the first packager and may know better about the consequence of not packaging it. :) -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c2 --- Comment #2 from Olaf Hering <ohering@suse.com> 2012-06-21 12:58:43 CEST --- Packaging /boot/grub2/* is indeed a bug. Please fix. -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c3 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |aj@suse.com InfoProvider|aj@suse.com | --- Comment #3 from Andreas Jaeger <aj@suse.com> 2012-06-21 11:20:14 UTC --- I don't remember why it was done this way ;-( -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c4 --- Comment #4 from Olaf Hering <ohering@suse.com> 2012-06-25 12:35:53 CEST --- Looking at https://build.opensuse.org/request/show/125780 , it looks wrong to me to have a %ghost entries for (bootloader) config files. Most config files simply should not belong to any package, and if they do %config(noreplace) (or whatever the syntax is) should be used. -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c5 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |snwint@suse.com AssignedTo|snwint@suse.com |mchang@suse.com --- Comment #5 from Steffen Winterfeldt <snwint@suse.com> 2012-06-25 13:50:06 CEST --- Not at all. /boot/grub2/grub.cfg is a generated file and should be packaged as %ghost. /etc/default/grub and /etc/grub.d/ are the real grub config files. Assigning to grub2 maintainer. -- 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=768063 https://bugzilla.novell.com/show_bug.cgi?id=768063#c6 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Michael Chang <mchang@suse.com> 2012-07-05 06:27:10 UTC --- I agree, Steffen. Actually my first attempted fix is like what Olaf mentioned and when reviewed my Jiri the right fix is to use %ghost. As the relevant fix was in factory, I consider this issue has been fixed. Feel free to reopen if you still have problem. Thanks. -- 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