Bug 104048

Summary: grub menu.lst entry for existing install does not include initrd
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Will Stephenson <wstephenson>
Component: InstallationAssignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Major    
Priority: P5 - None CC: gchristensen, jpeterse77, martin
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST2 logs
YaST2 log file, starting after the main installation

Description Will Stephenson 2005-08-11 08:47:04 UTC
I installed beta1 alongside my 9.3 install. It identified the 9.3  
and created a bootloader entry for it but did not include the  
initrd line needed to read the reiserfs, so I had to use the grub shell to get 
my old install to boot again. 
  
generated entry:  
kernel (hd2,1)/boot/vmlinuz root=/dev/sda2 vga=0x318 selinux=0  
splash=silent console=tty0 resume=/dev/sda1  showopts  
  
correct version found in menu.lst on my existing install:  
kernel (hd2,1)/boot/vmlinuz root=/dev/sda2 vga=0x318 selinux=0  
splash=silent console=tty0 resume=/dev/sda1  showopts  
initrd (hd2,1)/boot/initrd
Comment 1 Stanislav Visnovsky 2005-08-11 11:38:01 UTC
Please, attach the YaST logs. 
Comment 2 Stefan Nordhausen 2005-08-13 10:57:05 UTC
I had a similar problem, just that in my case the "initrd" line was not missing
but contained only the word "initrd", nothing else.
Comment 3 Stefan Nordhausen 2005-08-13 11:21:49 UTC
Created attachment 45969 [details]
YaST2 logs
Comment 4 Arvin Schnell 2005-08-16 14:23:25 UTC
Jiri, please have a look.
Comment 5 Jiri Srain 2005-08-17 13:35:12 UTC
Done in SVN, please, test with Beta3. 
Comment 6 Jiri Srain 2005-08-22 14:05:11 UTC
*** Bug 106135 has been marked as a duplicate of this bug. ***
Comment 7 Joerg Dippel 2005-09-13 20:34:36 UTC
I've installed RC2 because I've a similar problem with RC1.
This problem can be reported within this bug report or maybe within #105660.

The main aspect is another existing Linux that should be booted via bootloader.
Rebooting and choosing another Linux leads to a kernel panic due to missing
initrd entry.

What I've done to reproduce my observation:
I've done a new installation with standard selection - for partitioning I've
used /dev/hda8 - the selection of the partition is rather arbitrary. 
Next follows the fdisk output for that disk:

Disk /dev/hda: 60.0 GB, 60011642880 bytes
16 heads, 63 sectors/track, 116280 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1       17240     8688928+   7  HPFS/NTFS
/dev/hda2   *       17241      116280    49916160    f  W95 Ext'd (LBA)
/dev/hda5           17241       19321     1048792+  82  Linux swap / Solaris
/dev/hda6           19322       40127    10486192+  83  Linux
/dev/hda7           40128       56772     8389048+  83  Linux
/dev/hda8           56773       73417     8389048+  83  Linux
/dev/hda9           73418       90062     8389048+  83  Linux
/dev/hda10          90063      116280    13213840+  83  Linux

The main installation works and the menu.lst file seems to be correct. Booting
another Linux works as expected.

Then I edit the names via YaST within bootloader configuration using the YaST
text interface. This leads to a different menu.lst file with the consequence
that booting of another Linux is no longer possible.

After diffing the menu.lst files the difference is obvious:
---8<---
1c1
< # Modified by YaST2. Last modification on Di Sep 13 18:53:29 UTC 2005
---
> # Modified by YaST2. Last modification on Di Sep 13 21:26:23 CEST 2005
15c15,16
< title Linux (/dev/hda7)
---
> 
> title SUSE LINUX 9.1
17d17
<     initrd (hd0,6)/boot/initrd
20c20,21
< title SUSE LINUX 9.3 (/dev/hda9)
---
> 
> title SUSE LINUX 9.3
22d22
<     initrd (hd0,8)/boot/initrd
---8<---
Comment 8 Joerg Dippel 2005-09-13 20:37:29 UTC
Created attachment 49830 [details]
YaST2 log file, starting after the main installation
Comment 9 Andreas Jaeger 2005-09-14 06:12:53 UTC
This only happens during a manual change via YaST.

The automatically generated config was correct.

Jiri, please investigate and let's think about an Online Update.
Comment 10 Joerg Dippel 2005-09-14 07:47:48 UTC
If there is need for the complete logs, I've saved info about the basic 
installation and the post bootloader configuration: 
 
          /var/log/YaST2/y2log* 
          /boot/grub/* 
 
This has been seen on two different systems and reproduced on a T41p. 
Comment 11 Martin Lasarsch 2005-09-26 09:36:12 UTC
*** Bug 118531 has been marked as a duplicate of this bug. ***
Comment 12 Jiri Srain 2005-09-30 08:29:54 UTC
I successfully reproduced Joerg's problem. 
Comment 14 Andreas Jaeger 2005-09-30 09:38:39 UTC
Ok for 10.0 - please submit with one of the other bugs in this area.
Comment 15 Jiri Srain 2005-09-30 11:31:14 UTC
Yes, will submit together and with 1 patchinfo with bug 119428. Already done 
in SVN. 
Comment 16 Anja Stock 2005-10-10 14:10:55 UTC
released