Bug 728524

Summary: yast do not write a correct grub menu.lst and don't allow to manually fix it (other than with vi)
Product: [openSUSE] openSUSE 12.1 Reporter: Jean-Daniel Dodin <jdd>
Component: YaST2Assignee: Steffen Winterfeldt <snwint>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None    
Version: RC 2   
Target Milestone: ---   
Hardware: i686   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jean-Daniel Dodin 2011-11-05 10:07:11 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1

see also https://bugzilla.novell.com/show_bug.cgi?id=691060

For now a very long time, yast writes on top of any menu.lst entry a line "root (hdX,Y)".

The only use I see for this entry is the gfx menu position (that is not that important), because removing it do not prevent grub from booting.

The problem is double:

* grub have a random way of numbering the hard drives
* on 12.1, yast do not follow the grub way (it does in 11.4)



Reproducible: Always

Steps to Reproduce:
1.
2.
3.



my problem was the following (see also http://forums.opensuse.org/forums/english/get-technical-help-here/install-boot-login/467313-grub-stops-1-5-if-i-add-new-sata-drive.html):

I had one sata drive (sata 0, boot drive) and one ide drive. I added a new sata drive on sata 1.

No kernel problem, the drives where seen as sda (sata 0), sdb (IDE), sdc (sata 1).

At first the boot system hanged. When I could boot (tricky - from rescue dvd) 12.1, I noticed the sata 0 drive was now (hd2,X) when it was before hd0 and yast instructed to give a new config still gave hd0. on the same system, 11.4 setted hd2.

I want also to notice that it's not possible to verify this setup (the hdX,Y) in yast. This root (hdX,Y) option is not visible in the yast interface. There was long time ago a "edit the config file" in yast, but this option is no more.
Comment 1 Jean-Daniel Dodin 2011-11-05 10:09:55 UTC
the other lines in grub menu.lst uses drive UID or name and work perfectly

the grub map:

cat /boot/grub/device.map
(hd2)   /dev/disk/by-id/ata-ST9160310AS_5SV7PWVK
(fd0)   /dev/fd0
(hd1)   /dev/disk/by-id/ata-SAMSUNG_SP0812C_S01UJ10Y319672
(hd0)   /dev/disk/by-id/ata-IC35L120AVV207-0_VNVD06G4D2PX4L

the menu.lst entry:

title openSUSE 12.1
    root (hd2,2)
    kernel /boot/vmlinuz-3.1.0-1-default root=/dev/disk/by-id/ata-IC35L120AVV207-0_VNVD06G4D2PX4L-part3    splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-3.1.0-1-default

(initially was root (hd0,2)). The only necessary change is 0<>2
Comment 2 Martin Vidner 2011-11-09 15:44:04 UTC
I assume the logs are in bnc#691060 mentioned earlier.
Comment 3 Steffen Winterfeldt 2011-11-10 09:39:29 UTC
Actually, no. So, please attach yast logs for this bug.

> I want also to notice that it's not possible to verify this setup (the hdX,Y)
> in yast. This root (hdX,Y) option is not visible in the yast interface. There
> was long time ago a "edit the config file" in yast, but this option is no more.

That's not true in two ways: 1st, the edit config file option is still there
and 2nd, there is a menu that lets you edit the drive assignments
((hd0) <-> /dev/xxx).
Comment 4 Jean-Daniel Dodin 2011-11-10 16:05:51 UTC
I beg you pardon, I finally found the edit config menu entry...

I have to make more tests to see if such parameters are kept through kernel updates, but I have no access to this computer since 4 days 

do you have an idea of the use of this parameter? The computer boots as well without it!

thanks
jdd
Comment 5 Steffen Winterfeldt 2011-11-11 07:40:17 UTC
> do you have an idea of the use of this parameter? The computer boots as well
> without it!

That depends on your config. It sets the default partition where grub reads
files from.
Comment 6 Jean-Daniel Dodin 2011-11-18 16:55:34 UTC
I see. This is necessary in case of several disks. mystupid

anyway seems to work now
Comment 7 Jean-Daniel Dodin 2011-11-18 16:56:21 UTC
close