[Bug 552545] New: kernel update removes 11.1 grub entry
http://bugzilla.novell.com/show_bug.cgi?id=552545 Summary: kernel update removes 11.1 grub entry Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- I have a dual boot 11.1/11.2 system, so I need grub entries for both 11.1 and 11.2RCx. but recent kernel updates removed my 11.1 menu.lst entries for another root/boot several times. now I just run rpm -e kernel-default-2.6.31.3-1.1.x86_64 to remove one leftover old kernel rpm and this caused the following change in menu.lst which again trashed the 11.1 entry: boot > diff -u grub/menu.lst.old grub/menu.lst --- grub/menu.lst.old 2009-11-04 15:33:39.000000000 +0100 +++ grub/menu.lst 2009-11-04 17:04:29.000000000 +0100 @@ -1,4 +1,4 @@ -# Modified by YaST2. Last modification on Mon Nov 2 07:31:42 CET 2009 +# Modified by YaST2. Last modification on Wed Nov 4 17:04:29 CET 2009 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader # Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader @@ -44,18 +44,6 @@ module /vmlinuz-2.6.31.5-0.1-xen root=/dev/mapper/system-root2 resume=/dev/sda7 splash=silent showopts vga=0x37d module /initrd-2.6.31.5-0.1-xen -###Don't change this comment - YaST2 identifier: Original name: failsafe### -title Failsafe -- openSUSE 11.2 RC 1 - 2.6.31.3-1 (default) - root (hd0,5) - kernel /vmlinuz-2.6.31.3-1-default root=/dev/mapper/system-root2 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x37d - initrd /initrd-2.6.31.3-1-default - -###Don't change this comment - YaST2 identifier: Original name: linux### -title openSUSE 11.1 - 2.6.27.37-0.1 (default) - root (hd0,4) - kernel /vmlinuz-2.6.27.37-0.1-default root=LABEL=root resume=/dev/sda7 splash=silent showopts crashkernel=256M-:128M@16M vga=0x37d - initrd /initrd-2.6.27.37-0.1-default - ###Don't change this comment - YaST2 identifier: Original name: xen-xen### title XEN 11.1 root (hd0,4) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User mmarek@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c1 Michal Marek <mmarek@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mmarek@novell.com Component|Kernel |Bootloader Info Provider| |koenig@linux.de AssignedTo|kernel-maintainers@forge.pr |jreidinger@novell.com |ovo.novell.com | QAContact|qa@suse.de |jsrain@novell.com --- Comment #1 from Michal Marek <mmarek@novell.com> 2009-11-05 03:01:29 MST --- Please run save_y2logs and attach the tarball. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c2 Harald Koenig <koenig@linux.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|koenig@linux.de | --- Comment #2 from Harald Koenig <koenig@linux.de> 2009-11-05 09:35:11 MST --- Created an attachment (id=325801) --> (http://bugzilla.novell.com/attachment.cgi?id=325801) y2logs.tgz -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c3 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Josef Reidinger <jreidinger@novell.com> 2009-11-05 09:44:33 MST --- Thanks for logs. Reason is simple, pbl cannot find initrd and so remove that section. Now remain try to find why it doesn't create initrd. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c4 --- Comment #4 from Josef Reidinger <jreidinger@novell.com> 2009-11-05 09:51:52 MST --- I think I know where problem should be. Initrd detection need improvement. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c5 Harald Koenig <koenig@linux.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P5 - None --- Comment #5 from Harald Koenig <koenig@linux.de> 2009-11-05 09:55:47 MST --- (In reply to comment #3)
Thanks for logs.
Reason is simple, pbl cannot find initrd and so remove that section. Now remain try to find why it doesn't create initrd.
then yast or the update script is wrong: that initrd does exist! 11.1 menu.lst entry is/was: title openSUSE 11.1 - 2.6.27.37-0.1 (default) root (hd0,4) kernel /vmlinuz-2.6.27.37-0.1-default ... initrd /initrd-2.6.27.37-0.1-default (hd0,4) is /dev/sda5 which is /boot for 11.1 (now mounted on /old in 11.2): boot # df /dev/sda5 /dev/sda6 Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda5 1027267 91021 883243 10% /old/boot /dev/sda6 1027267 102743 871521 11% /boot boot # ls -l /old/boot/initrd-2.6.27.37-0.1-default -rw-r--r-- 1 root root 6362958 Oct 30 16:38 /old/boot/initrd-2.6.27.37-0.1-default -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User koenig@linux.de added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c6 --- Comment #6 from Harald Koenig <koenig@linux.de> 2009-11-06 00:08:45 MST --- (In reply to comment #3)
Reason is simple, pbl cannot find initrd and so remove that section. Now remain try to find why it doesn't create initrd.
thinking a bit about that "simple reason" -- IMHO it's not a good idea to remove any grub section just because you can't find initrd right now! at least non-interactive without user information/intervention. with yast gui you might add some user querry "shall I remove section ... because initrd is missing". simple reasons for not removing: - there might be "only" a typo in the initrd name -- this can easily be checked/fixed in grub boot command line. "fixing" (adding) a removed section at boot time is much more difficult... - the fs with that initrd might not be available only just now. either not mounted, or even on a removable media like an usb stick etc. - just don't ever remove user data with no real need;-)y -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=552545 User jreidinger@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=552545#c7 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium --- Comment #7 from Josef Reidinger <jreidinger@novell.com> 2009-11-06 00:21:26 MST --- Reason to remove it is simple. Don't have in boot menu items which doesn't work. For you case if your boot is at another partition then use image section is not good idea, as if you update kernel in 11.1 (e.g. security fix) then you must manually change it in 11.2 boot menu. For this reason I suggest use chainload section if 11.1 have own boot code in its partition or menu section if it doesn't have it. Decreasing priority as for boot another system is supported just chainload and menu config section. -- Configure bugmail: http://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=552545 https://bugzilla.novell.com/show_bug.cgi?id=552545#c Ihno Krumreich <ihno@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |openSUSE 11.2 -- 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=552545 https://bugzilla.novell.com/show_bug.cgi?id=552545#c9 Steffen Winterfeldt <snwint@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |WONTFIX --- Comment #9 from Steffen Winterfeldt <snwint@suse.com> 2014-03-18 09:17:24 CET --- I think this no longer applies. -- 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