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?
|