[Bug 224828] New: Update from RC1 to RC4: Wrong menu.lst for grub
https://bugzilla.novell.com/show_bug.cgi?id=224828 Summary: Update from RC1 to RC4: Wrong menu.lst for grub Product: openSUSE 10.2 Version: RC 4 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: jplack@novell.com ReportedBy: aj@novell.com QAContact: qa@suse.de CC: stefan.fent@novell.com After update from RC1, grub tried to boot a non-existing kernel and failed. menu.lst: x40aj:~ # cat /boot/grub/menu.lst # Modified by YaST2. Last modification on Thu Nov 30 09:52:11 CET 2006 default 4 timeout 8 gfxmenu (hd0,5)/boot/message ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 10.2 root (hd0,5) kernel /boot/vmlinuz root=/dev/sda6 vga=0x317 hwprobe=modules.pata resume=/dev/sda5 splash=silent showopts initrd /boot/initrd ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 10.2 root (hd0,5) kernel /boot/vmlinuz root=/dev/sda6 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3 initrd /boot/initrd title vmlinuz root (hd0,5) kernel /boot/vmlinuz root=/dev/sda6 vga=0x317 resume=/dev/sda5 selinux=0 splash=silent showopts initrd /boot/initrd ###Don't change this comment - YaST2 identifier: Original name: xen### title XEN root (hd0,5) kernel /boot/xen.gz module /boot/vmlinuz-xen root=/dev/sda6 vga=0x317 hwprobe=modules.pata resume=/dev/sda5 splash=silent showopts module /boot/initrd-xen title Kernel-2.6.18.2-33-default root (hd0,5) kernel /boot/vmlinuz-2.6.18.2-33-default root=/dev/sda6 vga=0x317 resume=/dev/sda5 splash=silent showopts initrd /boot/initrd-2.6.18.2-33-default x40aj:~ # cat /etc/grub.conf root (hd0,5) install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,5) /boot/grub/stage2 0x8000 (hd0,5)/boot/grub/menu.lst install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0) /boot/grub/stage2 0x8000 (hd0,5)/boot/grub/menu.lst quit x40aj:~ # ls -l /boot/ total 8120 -rw-r--r-- 1 root root 512 2005-08-31 23:17 backup_mbr lrwxrwxrwx 1 root root 1 2006-11-30 09:05 boot -> . -rw-r--r-- 1 root root 72710 2006-11-27 19:38 config-2.6.18.2-34-default drwxr-xr-x 2 root root 4096 2006-11-30 09:52 grub lrwxrwxrwx 1 root root 26 2006-11-30 09:52 initrd -> initrd-2.6.18.2-34-default -rw-r--r-- 1 root root 3283883 2006-11-30 09:52 initrd-2.6.18.2-34-default -rw-r--r-- 1 root root 379904 2006-11-30 09:52 message -rw-r--r-- 1 root root 86990 2006-11-27 19:40 symsets-2.6.18.2-34-default.tar.gz -rw-r--r-- 1 root root 344102 2006-11-27 19:40 symtypes-2.6.18.2-34-default.gz -rw-r--r-- 1 root root 100600 2006-11-27 19:39 symvers-2.6.18.2-34-default.gz -rw-r--r-- 1 root root 744294 2006-11-27 19:33 System.map-2.6.18.2-34-default -rwxr-xr-x 1 root root 1761938 2006-11-27 19:37 vmlinux-2.6.18.2-34-default.gz lrwxrwxrwx 1 root root 27 2006-11-30 09:27 vmlinuz -> vmlinuz-2.6.18.2-34-default -rw-r--r-- 1 root root 1474998 2006-11-27 19:33 vmlinuz-2.6.18.2-34-default Note: Default is for the 2.6.18.2-33 kernel which is not there. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224828 stefan.fent@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jplack@novell.com |odabrunz@novell.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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224828 ------- Comment #1 from jplack@novell.com 2006-11-30 03:58 MST ------- Yes, during update, we're in inst-sys, so bootloader_entry is not called to replace the sections affected by the updated kernel. and yast2-bootloader update code recently only updates section with original_name 'linux' and does not scan for section validity. thus the only place to fix this is 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=224828 odabrunz@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #2 from odabrunz@novell.com 2006-12-01 12:42 MST ------- AFAICS, the following happened here: 1. installation of 10.2 RC1 2. update of the kernel (probably with "rpm -U" or YOU) 3. update to 10.2 RC4 There are two issues: 1. The update of the kernel did not remove the old linux and failsafe sections: - openSUSE 10.2 - Failsafe -- openSUSE 10.2 This has been fixed in the bootloader_entry script in perl-Bootloader. The fix was not on RC1 though. Also, the kernel and initrd lines here still use the names of the links instead of the files with version numbers. Thus, they would not have been removed anyway. Newer yast2-bootloaders use the full file names with version, so the removal would have worked. When the linux section would have been gone at the end of the update, the linux section would have been recreated. To comment #2: The removal of old entries by the postuninstall script of the kernel does not depend on YAST_IS_RUNNING. It is done unconditionally. It did not work with the old bootloader_entry that still uses the --name parameter, and because the file names were still link names. This is an issue between RCs only. 2. The kernel was updated during the update to RC4, but the old entry for Kernel-2.6.18.2-33-default was not removed. This should not have happened, because the postuninstall script should have removed it. I need to reproduce this. I believe at least when the Kernel-2.6.18.2-33-default section was gone, a different section would have been made the default. Checking this as well. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com