Bug 103868

Summary: grub doesn't update 9.3 entries
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Andreas Schneider <asn>
Component: InstallationAssignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2log

Description Andreas Schneider 2005-08-10 16:08:11 UTC
I updated my SuSE 9.3 to SUSE 10.0 and grub has kept all 9.3 related entries.
I'll attach the relevant lines of y2log.

There is a XEN entry too. I don't have a XEN kernel installed.

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0 splash=silent
splash=silent  showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0 splash=silent
console=tty0 resume=/dev/hda1  showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3 INITNG
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0 splash=silent
console=tty0 resume=/dev/hda1 init=/sbin/initng  showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=normal showopts ide=nodma apm=off
acpi=off noresume selinux=0 barrier=off iommu=noforce 3
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
    root (hd0,1)
    kernel /boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0  splash=silent  
splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: xen###
title XEN
    root (hd0,1)
    module /boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0  splash=silent  
splash=silent showopts
    kernel /boot/xen.gz dom0_mem=458752
    module /boot/initrd
Comment 1 Andreas Schneider 2005-08-10 16:09:30 UTC
Created attachment 45571 [details]
y2log

Relevant lines of y2log
Comment 2 Jiri Srain 2005-08-11 08:15:37 UTC
Hmm, and how do you want the sections to be updated? YaST recreates its own 
sections (which it did), the others were created by you, and it is your task 
to update them if you need it. 
 
Note that sections which are modified are in fact created from scratch. The 
reason is that there may be needed to update eg. kernel parameters for new 
kernel and this is safer possibility. The original menu.lst is of course kept 
during update. 
Comment 3 Andreas Schneider 2005-08-11 09:25:18 UTC
I don't know why, but the top sections is missing here.

--

# Modified by YaST2. Last modification on Tue Aug  9 00:20:03 CEST 2005

color white/blue black/light-gray
default 1
timeout 8
gfxmenu (hd0,1)/boot/message

--

1. There is no 9.3 anymore on the system, so the 9.3 entries are obsolete. Maybe
you could rename them to 10.0 and add (user defined). 
  Why not check if the root, kernel and module parameter are exaclty the same
and then replace the title.

2. The default choses the second entry "SUSE LINUX 9.3"

3. The SUSE LINUX 10.0 Failsafe entry doesn't look like a failsafe entry.

4. There is a XEN entry, but there is no XEN on my system installed.

If the user doesn't remove the entries and updates his SuSE installation 3
times, then he has about 12 - 16 entries in his menu.lst.
Comment 4 Jiri Srain 2005-08-11 13:57:56 UTC
3 -> see bug 103865, already fixed.  
  
1, 2 and 4 -> see bug 104039, already fixed.  
  
What I missunderstood was what you want to do with the sections. The important  
is: During update, YaST replaces the sectinos YaST proposed (Linux, Failsage, 
Memtest, Windows,...). This means that if you add your own section, YaST won't 
touch it. The only problem will be in the title. I will try to 
- get the title from the previous distro (from the "linux" section) 
- if it is included in the new sections AND kernel and initrd point to the 
same location -> I will modify the labels. I hope this is what you want. 
Comment 5 Andreas Schneider 2005-08-12 11:22:41 UTC
That would be great! Thanks.
Comment 6 Jiri Srain 2005-08-15 10:45:15 UTC
Done in SVN, please, test Beta2.