Bug 299651

Summary: Used yast to switch from bigsmp to default kernel resulted in corrupted menu.lst
Product: [openSUSE] openSUSE 10.3 Reporter: Forgotten User 9WJQF5tTlz <forgotten_9WJQF5tTlz>
Component: YaST2Assignee: Jozef Uhliarik <juhliarik>
Status: RESOLVED FEATURE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jplack, stefan.fent
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast generated backup of menu.lst, named menu.lst.old
Yast generated menu.lst with lost entries and missing kernel parameters.
Repaired menu.lst
complete /var/log/YaST2
broken menu.lst
device.map
grub.conf
old menu.lst

Description Forgotten User 9WJQF5tTlz 2007-08-12 14:43:36 UTC
While testing beta1, decided to swap the bigsmp kernel for the default one.

after reboot, the boot menu entries were different. the menu.lst file modifications lost other entries I had there.

This laptop has SLED10, Windows and OpenSuse 10.3, after the kernel change, the SLED10 entry was lost and the extra kernel options "vga=0x317 resume=/dev/hda5 splash=silent showopts"

The other effect shown was a corrupted X server. The bottom of the screen had garbage shown.

After I restored the original bigsmp, the kernel options were still missing and the X server still showed garbage.

I restored the kernl options manually and rebooted. The X server is OK now.
Comment 1 Andreas Jaeger 2007-08-12 15:48:07 UTC
Could you add menu.lst - and also the backup, please?
Comment 2 Forgotten User 9WJQF5tTlz 2007-08-13 12:33:48 UTC
Created attachment 157055 [details]
Yast generated backup of menu.lst, named menu.lst.old
Comment 3 Forgotten User 9WJQF5tTlz 2007-08-13 12:36:25 UTC
Created attachment 157056 [details]
Yast generated menu.lst with lost entries and missing kernel parameters.

Notice that the default menu selection is 2, not 0 as it was originally. The first  kernel entry is missing the kernel parameters.
Comment 4 Forgotten User 9WJQF5tTlz 2007-08-13 12:37:51 UTC
Created attachment 157057 [details]
Repaired menu.lst

This one is the manually repaired menu.lst. I've set default to 0, and restored the kernel parameters. Added the entry of SLED10 and its fail safe mode.
Comment 5 Alexander Osthof 2007-08-14 08:23:35 UTC
Will take care.
Comment 6 Marco Michna 2007-08-24 11:25:17 UTC
Have the same on my laptop.
Comment 7 Marco Michna 2007-08-24 11:28:11 UTC
I tested it with beta2. logs will be attched
Comment 8 Marco Michna 2007-08-24 11:38:30 UTC
Created attachment 159693 [details]
complete /var/log/YaST2
Comment 9 Marco Michna 2007-08-24 11:39:40 UTC
Created attachment 159694 [details]
broken menu.lst
Comment 10 Marco Michna 2007-08-24 11:40:27 UTC
Created attachment 159696 [details]
device.map
Comment 11 Marco Michna 2007-08-24 11:42:01 UTC
Created attachment 159698 [details]
grub.conf
Comment 12 Marco Michna 2007-08-24 11:43:01 UTC
Created attachment 159700 [details]
old menu.lst
Comment 13 Marco Michna 2007-08-24 12:05:14 UTC
But the problem seems to be that there is no kernel installed at all.
And even if I try to switch back to the bigsmp - no kernel is installed.
Comment 14 Stefan Fent 2007-08-27 08:23:11 UTC
Bootloader behaves as expected, reassigning
Comment 16 Katarina Machalkova 2007-08-28 08:11:30 UTC
Another Kernel.ycp (probably) issue, might be FaTE #159006 related
Comment 17 Jiri Srain 2007-08-30 11:03:37 UTC
The only complete log comes from Marco (comment #9). According to this log:

2007-08-26 22:42:12 <0> e103(8616) [zypp] ExternalProgram.cc(start_program):172 Executing '/bin/mount' '-t' 'nfs' '-o' 'ro,nolock,soft,timeo=10' '10.10.0.100:/dist/install/SLP/openSUSE-10.3-Build936-DVD/i386/DVD1' '/var/adm/mount/AP_0x00000001'
2007-08-26 22:42:12 <0> e103(8616) [zypp] ExternalProgram.cc(start_program):283 pid 8823 launched
2007-08-26 22:42:13 <0> e103(8616) [zypp] Mount.cc(mount):98 stdout: mount.nfs: No such device
2007-08-26 22:42:13 <0> e103(8616) [zypp] ExternalProgram.cc(checkStatus):330 pid 8823 exited with status 32
2007-08-26 22:42:13 <0> e103(8616) [zypp] Mount.cc(Status):251 exit code: 32
2007-08-26 22:42:13 <2> e103(8616) [zypp] Mount.cc(mount):144 mount 10.10.0.100:/dist/install/SLP/openSUSE-10.3-Build936-DVD/i386/DVD1 /var/adm/mount/AP_0x00000001: Mounting media failed

Looks like some problem accessing the server with the repository. Marco, can you check it?

I just tested it here in our local environment, and the kernel switch succeeded.
Comment 20 Marco Michna 2007-08-30 14:15:59 UTC
Just installed from scratch and didn't had the problem this time.

If you want then I can try another installation and rip out the network cable.
IMHO it should not delete the kernel if there is no connection to the source. 
Comment 21 Jiri Srain 2007-08-31 12:59:29 UTC
OK, since it works now, decreasing the severity.

The reason why the old kernel was removed is that YaST first deleted the old kernel and afterwards downloaded new one. The network connection is not the only thing that can break - the package may be missing on the media, its signature may be wrong, etc. It is not possible to download everything first and then start the transaction (since some users do not have enough free disk space).

Passing to Olaf to try to find a way to preserve the kernel parameters in case of kernel removal followed by kernel installation. However, this is definitly not a blocker.
Comment 23 Joachim Plack 2007-12-12 20:04:13 UTC
No ressources assigned here right now, will address problem later
Comment 24 Joachim Plack 2008-03-20 04:13:59 UTC
reevaluate for SLE11
Comment 25 Joachim Plack 2008-07-15 11:22:13 UTC
assign to yast2-bootloader maintainer
Comment 26 Jozef Uhliarik 2008-07-27 19:59:57 UTC
there exist fate request #302245. it solves problem with lost args for kernel params.