Bug 164771 - YaST2 Boot Loader changes corrupt menu.lst
Summary: YaST2 Boot Loader changes corrupt menu.lst
Status: RESOLVED DUPLICATE of bug 163278
: 164852 166916 166972 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: RC 1
Hardware: x86-64 SuSE Linux 10.1
: P5 - None : Blocker (vote)
Target Milestone: ---
Assignee: Joachim Plack
QA Contact: Stanislav Visnovsky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 04:06 UTC by James Potter
Modified: 2006-04-18 17:17 UTC (History)
6 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Original menu.lst (1.56 KB, text/plain)
2006-04-10 04:07 UTC, James Potter
Details
Corrupted menu.lst after moving section down (1.67 KB, text/plain)
2006-04-10 04:09 UTC, James Potter
Details
Fixed version of menu.lst (1.58 KB, text/plain)
2006-04-10 04:10 UTC, James Potter
Details
Corrupted menu.lst after changing default selection (1.58 KB, text/plain)
2006-04-10 04:11 UTC, James Potter
Details
Fixed menu.lst after set default corruption (1.58 KB, text/plain)
2006-04-10 04:12 UTC, James Potter
Details
Corrupted menu.lst after changing windows boot entries (1.59 KB, text/plain)
2006-04-10 04:14 UTC, James Potter
Details
Y2log for problem reproduction (281.06 KB, application/x-gzip)
2006-04-11 00:46 UTC, James Potter
Details
menu.lst before setting default to third section (1.58 KB, text/plain)
2006-04-11 00:49 UTC, James Potter
Details
menu.lst after setting default to third section (1.59 KB, text/plain)
2006-04-11 00:50 UTC, James Potter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Potter 2006-04-10 04:06:11 UTC
After the original installation of 10.1beta9, my system had a working menu.lst. However, the YaST2 Boot Loader configuration tool corrupted menu.lst by copying lines from the header into the modified sections. In particular, the lines:
   color white/blue black/light-gray
   default 0
   timeout 8
   gfxmenu (hd1,2)/boot/message
were copied from the header into the specific boot sections.

The orignal working menu.lst contained these lines:

# Modified by YaST2. Last modification on Sun Apr  9 21:09:59 UTC 2006

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd1,2)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
    root (hd1,2)
    kernel /boot/vmlinuz root=/dev/sdb3 vga=0x317 selinux=0    resume=/dev/sdb1  splash=silent showopts
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: SUSE LINUX 9.2 (/dev/sda6)###
title SUSE LINUX 9.2 (/dev/sda6)
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/sda6 vga=0x317 selinux=0 splash=silent console=tty0 resume=/dev/sda5 desktop elevator=as showopts
    initrd /boot/initrd

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

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

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

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
    chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.1
    root (hd1,2)
    kernel /boot/vmlinuz root=/dev/sdb3 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 edd=off 3
    initrd /boot/initrd

I then used YaST2 Boot Loader to reorder the sections; in particular, I used the down button to move the first section down into third place. When I did this, the color, default, timeout, and gfxmenu lines were copied into the moved section:

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
    root (hd1,2)
    color white/blue black/light-gray
    default 2
    timeout 8
    gfxmenu (hd1,2)/boot/message
    kernel /boot/vmlinuz root=/dev/sdb3 vga=0x317 selinux=0    resume=/dev/sdb1  splash=silent showopts
    initrd /boot/initrd

After fixing menu.lst by removing the extraneous lines, I then tried to use YaST2 Boot Loader to change the default option from the third section (10.1) to the new first section (9.2). That also corrupted menu.lst. This time the color, default, timeout, and gfxmenu lines were copied to the first section and the "Don't change this comment" line was deleted from the first section of menu.lst:

title SUSE LINUX 9.2 (/dev/sda6)
    root (hd0,5)
    color white/blue black/light-gray
    default 0
    timeout 8
    gfxmenu (hd1,2)/boot/message
    kernel /boot/vmlinuz root=/dev/sda6 vga=0x317 selinux=0 splash=silent console=tty0 resume=/dev/sda5 desktop elevator=as showopts
    initrd /boot/initrd

Once again I fixed menu.lst. Then I rearranged the Windows 1 and Windows 2 entries and renamed them. And again, the first section in menu.lst had extra lines copied in and the first line deleted - just as when I changed the default.
Comment 1 James Potter 2006-04-10 04:07:53 UTC
Created attachment 77391 [details]
Original menu.lst
Comment 2 James Potter 2006-04-10 04:09:01 UTC
Created attachment 77392 [details]
Corrupted menu.lst after moving section down
Comment 3 James Potter 2006-04-10 04:10:26 UTC
Created attachment 77393 [details]
Fixed version of menu.lst
Comment 4 James Potter 2006-04-10 04:11:40 UTC
Created attachment 77394 [details]
Corrupted menu.lst after changing default selection
Comment 5 James Potter 2006-04-10 04:12:50 UTC
Created attachment 77395 [details]
Fixed menu.lst after set default corruption
Comment 6 James Potter 2006-04-10 04:14:00 UTC
Created attachment 77396 [details]
Corrupted menu.lst after changing windows boot entries
Comment 7 Christian Boltz 2006-04-10 08:12:34 UTC
Please attach the y2logs.
Comment 8 Michael Gross 2006-04-10 14:31:00 UTC
*** Bug 164852 has been marked as a duplicate of this bug. ***
Comment 9 James Potter 2006-04-11 00:46:47 UTC
Created attachment 77656 [details]
Y2log for problem reproduction

This is the y2log from reproducing the problem by changing the default with the YaST2 Boot Loader's Set Default button.
Comment 10 James Potter 2006-04-11 00:49:15 UTC
Created attachment 77657 [details]
menu.lst before setting default to third section

Contents of menu.lst before y2log
Comment 11 James Potter 2006-04-11 00:50:41 UTC
Created attachment 77658 [details]
menu.lst after setting default to third section

Contents of menu.lst after y2log
Comment 12 Michael Gross 2006-04-11 11:46:03 UTC
Not quite the same as in #164427
Reassigning to Olaf.
Comment 13 James Potter 2006-04-14 03:03:15 UTC
Just installed RC1 and retested - no change in behavior.
Comment 14 Christian Boltz 2006-04-15 11:27:10 UTC
*** Bug 166916 has been marked as a duplicate of this bug. ***
Comment 15 Christian Boltz 2006-04-15 19:09:20 UTC
The broken menu.lst entries can't be booted AFAIK - therefore this is at least major.
Comment 16 Christian Boltz 2006-04-16 20:39:21 UTC
*** Bug 166972 has been marked as a duplicate of this bug. ***
Comment 17 Andreas Jaeger 2006-04-17 21:39:12 UTC
Looks like a blocker to me.
Comment 19 Stefan Fent 2006-04-18 09:03:27 UTC

*** This bug has been marked as a duplicate of 163278 ***