bugGNU GRUB - Bugs: bug #36572, unable to install bootloader on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36572: unable to install bootloader on SAS storage

Submitter:  Isao Shimizu <isao>
Submitted:  Fri 01 Jun 2012 07:06:18 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Isao Shimizu
Open/Closed:  Closed Release:  Bazaar - trunk
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 02 Jun 2012 12:54:42 PM UTC, comment #1: 

Comitted, thanks.

Vladimir Serbinenko <phcoder>
Group administrator
Fri 01 Jun 2012 07:06:18 AM UTC, original submission:  


unable to install bootloader on SAS storage.
anaconda stopped after install rpm packege from repository. and show error message.

"There was an error installing the bootloader. The system may not be bootable."

/tmp/program.log
19:14:37,207 INFO program: Running... grub2-install --no-floppy /dev/sda
19:14:39,134 ERR program: Installtion finished. No error reported.
19:14:39,295 INFO program: Running... grub2-set-default Fedora Linux, with Linux 3.3.4-5.fc17.x86_64
19:14:39,385 INFO program: Running... grub2-mkconfig -o /boot/grub2/grub.cfg
19:14:39,552 ERR program: Generating grub.cfg ...
stopped.

grub2-mkconfig stopped at /usr/share/grub/grub-mkconfig_lib, prepare_grub_to_access_device().

problem line:
hints="`"${grub_probe}" --device "${device}" --target=hints_string 2> /dev/null`"

I executed this command on anaconda console.
but occured error "No such file or directory".

grub2-probe --device /dev/sda --target=hints_string
grub2-probe: error: cannot open `/sys/devices/pci0000:00/0000:00:03.0/0000:02:00.0/host4/port-4:0/end_device-4:0/sas_device:end_device-4:0/phy_identifier': No such file or directory.

the path is wrong. correct path is
/sys/devices/pci0000:00/0000:00:03.0/0000:02:00.0/host4/port-4:0/end_device-4:0/sas_device/end_device-4:0/phy_identifier
(colon or slash)

and I found problem code in grub source.

http://alpha.gnu.org/gnu/grub/grub-2.00~beta4.tar.gz
check_sas() util/ieee1275/ofpath.c

snprintf (path, path_size, "%s/sas_device:%s/phy_identifier", p, ed);

to

snprintf (path, path_size, "%s/sas_device/%s/phy_identifier", p, ed);

Probably, this code is executed only machine attached SAS devices.

I fixed this code,and built rpm package. and include my rpm package by Fedora 17 anaconda.
And it works. (bootloader installation is successfully!)

I don't know who commit this patch. me or other commiter?

Isao Shimizu <isao>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by isao (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-02 phcoder StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code