Bug 391971

Summary: Boot loader installation failure on RAID1
Product: [openSUSE] openSUSE 11.0 Reporter: Volker Kuhlmann <bugz57>
Component: YaST2Assignee: Jozef Uhliarik <juhliarik>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Installation summary "missing grub proposal" when boot loader settings had been manually given.
Yast logs after failed grub installation before initial reboot.

Description Volker Kuhlmann 2008-05-19 10:22:46 UTC
System with md raid1. Yast fails to propose a boot loader configuration. Warning that because it's a raid system and /boot is on raid, installing a boot loader may not be possible. Correct, but it *is* always possible on raid1 and has worked since suse 8.x.

When manually telling yast to install grub in mbr, the message "Error: Because of the partitioning, the boot loader cannot be installed properly". This is nonsense.

After this, yast shows in the installation summary the error as above, plus "ERROR: No proposal". At this stage, proposals are in the past and settings are given and known. Attachment #1 [details].

Before reboot during installation, grub installation fails with 

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> setup --stage2=/boot/grub/stage2 (hd0) (hd0,1)

Error 17: Cannot mount selected partition


Rootfs is /dev/md2, grub devices are

(fd0)   /dev/fd0
(hd0)   /dev/sda

md2 is made up of /dev/sda7, which is (hd0,6) not (hd0,1).

# cat /etc/grub.conf-yast
setup --stage2=/boot/grub/stage2 (hd0) (hd0,1)
quit

Wrong partition number.
sda2 = (hd0,1) is the swap partition!!

menu.lst is correct:

title Pae -- openSUSE 11.0 - 2.6.25.3-2
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.25.3-2-pae root=/dev/md2 sshpasswd=12345678 resume=/dev/sda2 splash=sil
ent showopts vga=0x317
    initrd /boot/initrd-2.6.25.3-2-pae

(Is there a reason why the temporary ssh installation password is permanently stored in menu.lst?)

Yast logs before intitial reboot in attachment #2 [details].
Comment 1 Volker Kuhlmann 2008-05-19 10:25:02 UTC
Created attachment 216343 [details]
Installation summary "missing grub proposal" when boot loader settings had been manually given.
Comment 2 Volker Kuhlmann 2008-05-19 10:26:43 UTC
Created attachment 216344 [details]
Yast logs after failed grub installation before initial reboot.
Comment 3 Arvin Schnell 2008-05-20 12:50:14 UTC
yast2-bootloader issue.
Comment 4 Jozef Uhliarik 2008-05-20 16:20:00 UTC
thank you for your bug report. it is duplicate of bug# 341309 or very similar. I will try to fix it to 11.0

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