Bug 224481

Summary: Failsafe entry missing and label is missing product in default entry in menu.lst when updating kernel
Product: [openSUSE] openSUSE 10.2 Reporter: Holger Sickenberg <holgi>
Component: Update ProblemsAssignee: Olaf Dabrunz <odabrunz>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: aj, lgrimmer, meissner
Version: RC 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Holger Sickenberg 2006-11-29 13:46:46 UTC
I updated the kernel and noticed that the modifications in menu.lst are bad:
(missing Failsafe entry - openSUSE 10.2 is now Kernel-2.6.18.2-34-default).

BTW: The 'old' kernel is not available anymore and there is no entry for booting it after the update.


menu.lst after updating:
========================

# Modified by YaST2. Last modification on Wed Nov 29 14:36:06 CET 2006
default 0
timeout 8
gfxmenu (hd0,10)/boot/message

title Kernel-2.6.18.2-34-default
    root (hd0,10)
    kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda11 vga=0x34b resume=/dev/sda13 splash=silent showopts
    initrd /boot/initrd-2.6.18.2-34-default


menu.lst before updating:
=========================

# Modified by YaST2. Last modification on Wed Nov 29 14:29:02 CET 2006
default 2
timeout 8
gfxmenu (hd0,10)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
    root (hd0,10)
    kernel /boot/vmlinuz-2.6.18.2-31-default root=/dev/sda11 vga=0x34b    resume=/dev/sda13 splash=silent showopts
    initrd /boot/initrd-2.6.18.2-31-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
    root (hd0,10)
    kernel /boot/vmlinuz-2.6.18.2-31-default root=/dev/sda11 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.18.2-31-default
Comment 1 Joachim Plack 2006-11-29 16:17:03 UTC
Mmh. for the failsafe entry, I propose to go back to the vmlinux symlink,
as long it is there and supported by the kernel rpm.

the 'linux' section will be a harder thing to change
Comment 2 Joachim Plack 2006-11-30 13:45:27 UTC
The only place to fix that is yast2-bootloader.
Proposing to check for invalid entries in UpdateSections for the linux section
Comment 3 Lenz Grimmer 2006-12-01 15:18:32 UTC
I observed something similar during an initial install of 10.2RC1: the installer runs the online update, which updates the kernel from 2.6.18.2-23 to 2.6.18.2-33. Instead of replacing the existing boot menu entry, it adds a new one to the end of menu.lst and makes it the default (the previous ones remain):

# Modified by YaST2. Last modification on Fri Dec  1 13:43:53 CET 2006
default 4
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,2)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.2
    root (hd0,2)
    kernel /vmlinuz-2.6.18.2-23-default root=/dev/system/suse102root vga=0x342 resume=/dev/hda5 splash=silent showopts
    initrd /initrd-2.6.18.2-23-default

###Don't change this comment - YaST2 identifier: Original name: windows 1###
title Windows XP
    rootnoverify (hd0,0)
    chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title Access IBM
    rootnoverify (hd0,0)
    chainloader (hd0,1)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.2
    root (hd0,2)
    kernel /vmlinuz-2.6.18.2-23-default root=/dev/system/suse102root vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /initrd-2.6.18.2-23-default

title Kernel-2.6.18.2-33-default
    root (hd0,2)
    kernel /vmlinuz-2.6.18.2-33-default root=/dev/system/suse102root vga=0x342 resume=/dev/hda5 splash=silent showopts
    initrd /initrd-2.6.18.2-33-default
Comment 4 Olaf Dabrunz 2006-12-01 16:13:03 UTC
To the initial comment:

> missing Failsafe entry

The fix proposed in comment #1 (using symlinks in failsafe entry again) is
in yast2-bootloader-2.14.15.rpm.

> openSUSE 10.2 is now Kernel-2.6.18.2-34-default

This is ugly. It would be good if it would be "openSUSE 10.2
(Kernel-2.6.18.2-34-default)", but this is a new feature, not a critical
bug.

This title would need to be fixed in the postinstall-script of the kernel
(and maybe also in bootloader_entry or update_bootloader).

AFAIK there are plans to change this though.

> BTW: The 'old' kernel is not available anymore and there is no entry for
> booting it after the update.

This is correct. An update of the kernel is supposed to replace the
installed kernel. Only a manual "rpm -i" would install an additional kernel.

(And even if you would like to do both, there is currently (to my knowledge)
no feature to have an interface in the updater to select "keep old kernel"
nor is this handled anywhere in yast.)

-> Feature request?


To comment #3: this is bug #224828, please have a look there.