[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
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
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
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
http://bugzilla.novell.com/show_bug.cgi?id=552545
Josef Reidinger
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
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
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
https://bugzilla.novell.com/show_bug.cgi?id=552545
https://bugzilla.novell.com/show_bug.cgi?id=552545#c
Ihno Krumreich
https://bugzilla.novell.com/show_bug.cgi?id=552545
https://bugzilla.novell.com/show_bug.cgi?id=552545#c9
Steffen Winterfeldt
participants (1)
-
bugzilla_noreply@novell.com