Bug 892182 - BootLoaderError: bootloader install failed
Summary: BootLoaderError: bootloader install failed
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3cd15f7ea4e32dfc1076c026350...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-05 17:43 UTC by A.J. Werkman
Modified: 2014-02-05 14:25 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-05 14:25:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (534.68 KB, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: anaconda.log (9.41 KB, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: environ (846 bytes, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: ifcfg.log (665 bytes, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: ks.cfg (1.15 KB, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: packaging.log (143.00 KB, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: program.log (69.59 KB, text/plain)
2013-01-05 17:44 UTC, A.J. Werkman
no flags Details
File: storage.log (154.57 KB, text/plain)
2013-01-05 17:45 UTC, A.J. Werkman
no flags Details
File: syslog (96.35 KB, text/plain)
2013-01-05 17:45 UTC, A.J. Werkman
no flags Details
Output of parted (951 bytes, text/plain)
2013-01-08 11:03 UTC, A.J. Werkman
no flags Details

Description A.J. Werkman 2013-01-05 17:43:41 UTC
Description of problem:
The following was filed automatically by anaconda:
anaconda 18.37.8 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 1540, in install
    raise BootLoaderError("bootloader install failed")
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 1554, in write
    self.install()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/bootloader.py", line 2312, in writeBootLoader
    storage.bootloader.write()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 135, in doInstall
    writeBootLoader(storage, payload, instClass, ksdata)
  File "/usr/lib64/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 91, in run
    threading.Thread.run(self, *args, **kwargs)
BootLoaderError: bootloader install failed


Installed from USB with kickstart file

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   nomodeset inst.ks=hd:sdb1:/cfl.cfg ip=212.115.199.60::212.115.199.57:255.255.255.248:testsys.digifarma.nl::none noipv6 nameserver=212.115.199.57 inst.stage2=hd:LABEL=CFL_18TC4
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.6.10-4.fc18.x86_64
other involved packages: 
package:        anaconda-18.37.8
product:        Fedora
release:        Cannot get release name.
type:           libreport
version:        18-TC4

Comment 1 A.J. Werkman 2013-01-05 17:44:29 UTC
Created attachment 672945 [details]
File: anaconda-tb

Comment 2 A.J. Werkman 2013-01-05 17:44:32 UTC
Created attachment 672946 [details]
File: anaconda.log

Comment 3 A.J. Werkman 2013-01-05 17:44:33 UTC
Created attachment 672947 [details]
File: environ

Comment 4 A.J. Werkman 2013-01-05 17:44:36 UTC
Created attachment 672948 [details]
File: ifcfg.log

Comment 5 A.J. Werkman 2013-01-05 17:44:37 UTC
Created attachment 672949 [details]
File: ks.cfg

Comment 6 A.J. Werkman 2013-01-05 17:44:47 UTC
Created attachment 672950 [details]
File: packaging.log

Comment 7 A.J. Werkman 2013-01-05 17:44:54 UTC
Created attachment 672951 [details]
File: program.log

Comment 8 A.J. Werkman 2013-01-05 17:45:14 UTC
Created attachment 672952 [details]
File: storage.log

Comment 9 A.J. Werkman 2013-01-05 17:45:32 UTC
Created attachment 672953 [details]
File: syslog

Comment 10 Chris Lumens 2013-01-07 14:23:52 UTC
18:35:11,299 INFO program: Running... grub2-install --no-floppy /dev/sdb
18:35:12,301 ERR program: /usr/sbin/grub2-bios-setup: warning: your embedding area is unusually small.  core.img won't fit in it..
18:35:12,305 ERR program: /usr/sbin/grub2-bios-setup: error: embedding is not possible, but this is required for cross-disk install.

Comment 11 Brian Lane 2013-01-07 18:54:43 UTC
What did you do to hit this?

Also, what does the output of parted -l look like? That error usually means the first partition is too close to the mbr, which shouldn't be happening.

Comment 12 A.J. Werkman 2013-01-07 21:35:39 UTC
I boot anaconda from usb, which is my /dev/sdb1.
Kickstart file is configured to install to harddisk, which is /dev/sda.

According to the log grub wants too install the bootsector on sdb. This fails.

Anyway, grub should not install the bootcode on sdb, since I did not explicitly ask it to and it is not a logical way to go to install (without explicit command) the boot code on the disc where anaconda was started from and not the drive where the new root filesystem, resides on.

Comment 13 Mads Kiilerich 2013-01-07 21:37:31 UTC
Chris, was grub wrong when it reported back that it couldn't do what it was asked to do?

AFAICS there is no bug in grub here. Anaconda shouldn't have asked grub2 to do something impossible ... or handle in a more elegant way that it failed.

It do however look like a slighly odd setup:
18:35:10,897 INFO storage: bootloader stage1 target device is sdb
18:35:10,897 INFO storage: bootloader stage2 target device is sda1

 'DEVLINKS': '/dev/disk/by-id/usb-Generic_Flash_Disk_CCBB1109291024230778821809-0:0 /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.2:1.0-scsi-0:0:0:0',
 'DEVNAME': 'sdb',
 'DEVPATH': '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb',
 'ID_PART_TABLE_TYPE': 'dos',

 'DEVNAME': 'sdb1',
 'DEVPATH': '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1',
 'ID_PART_ENTRY_OFFSET': '32',

Comment 14 Brian Lane 2013-01-07 21:56:57 UTC
How did you make the USB stick? It should be labeled LIVE if you used livecd-iso-to-disk or liveusb-creator which would make anaconda ignore it as a valid destination.

Comment 15 A.J. Werkman 2013-01-07 23:48:21 UTC
Made it 'by hand'

mksfs.ext3 /dev/sdb1
e2label /dev/sdb1 CFL_18TC4

Then populate it:
.treeinfo
.discinfo
cfl.cfg
/boot/grub/*
/images/pxeboot/vmlinuz
/images/pxeboot/initrd.img
/LiveOS/squashfs.img

Comment 16 A.J. Werkman 2013-01-08 11:03:06 UTC
Created attachment 674718 [details]
Output of parted

Here I have the output of parted.

Starts to look to me that this bug might be two bugs:
1- Anaconda crashes instead of telling the user that it can not install the bootloader.

2- Anaconda installs the bootcode on another disc then where it puts the OS without the user telling to to.

I could reproduce in a setting where the grub installation did not crash, that the boot code was installed on the USB-drive and not the harddisk where Fedora was installed to. After installation and booting from the harddisk the system hung, because there was no bootcode on the harddisk.

Comment 17 Mads Kiilerich 2013-01-08 11:07:23 UTC
3- The manually created USB image was not created correctly.

Comment 18 A.J. Werkman 2013-01-08 11:16:00 UTC
(In reply to comment #17)
> 3- The manually created USB image was not created correctly.

The validity of this can be discussed.

By my opinion, in an installation scenario, every USB or other disc is correct by definition. It is the installation program that should handle every disc that can be found in the wild, correctly (according to what the user expects).

Comment 19 Brian Lane 2013-01-08 15:22:57 UTC
Please use one of the standard methods for creating USB drives. There *may* be some underlying bugs here, but hand-creating it just introduces unnecessary variables.

Comment 20 A.J. Werkman 2013-01-08 19:48:53 UTC
That is excactly why I am doming this, tracing bugs.

(In reply to comment #19)
> Please use one of the standard methods for creating USB drives. There *may*
> be some underlying bugs here, but hand-creating it just introduces
> unnecessary variables.

Comment 21 Fedora End Of Life 2013-12-21 10:11:55 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 22 Fedora End Of Life 2014-02-05 14:25:54 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.