Bug 1168443 - TC4 and RC1 installs don't boot (appears related to multiple disks and which get used for booting)
Summary: TC4 and RC1 installs don't boot (appears related to multiple disks and which ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F21FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2014-11-27 00:44 UTC by Bruno Wolff III
Modified: 2014-12-05 17:59 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-30 01:58:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
install log file (anaconda.log) (60.29 KB, text/plain)
2014-11-27 14:20 UTC, Bruno Wolff III
no flags Details
install log file (ifcfg.log) (2.99 KB, text/plain)
2014-11-27 14:21 UTC, Bruno Wolff III
no flags Details
install log file (journal.log) (959.57 KB, text/plain)
2014-11-27 14:22 UTC, Bruno Wolff III
no flags Details
install log file (packaging.log) (204 bytes, text/plain)
2014-11-27 14:27 UTC, Bruno Wolff III
no flags Details
install log file (program.log) (62.07 KB, text/plain)
2014-11-27 14:29 UTC, Bruno Wolff III
no flags Details
install log file (storage.log) (412.31 KB, text/plain)
2014-11-27 14:30 UTC, Bruno Wolff III
no flags Details
rc1 anaconda.log (34.02 KB, text/plain)
2014-11-29 18:51 UTC, Bruno Wolff III
no flags Details
rc1 ifcfg.log (2.83 KB, text/plain)
2014-11-29 18:52 UTC, Bruno Wolff III
no flags Details
rc1 journal.log (867.23 KB, text/plain)
2014-11-29 18:53 UTC, Bruno Wolff III
no flags Details
rc1 packaging.log (208 bytes, text/plain)
2014-11-29 18:54 UTC, Bruno Wolff III
no flags Details
rc1 program.log (46.04 KB, text/plain)
2014-11-29 18:54 UTC, Bruno Wolff III
no flags Details
rc1 storage.log (448.71 KB, text/plain)
2014-11-29 18:55 UTC, Bruno Wolff III
no flags Details
rc1 mbr (512 bytes, application/octet-stream)
2014-11-29 18:56 UTC, Bruno Wolff III
no flags Details

Description Bruno Wolff III 2014-11-27 00:44:54 UTC
Description of problem:
I booted the Live Games Spin (i686) and then did an install to hard drive using swap, /boot, / and /backup (an external USB drive) using ext4 and luks (except /boot) without LVM.

When I tried rebooting the machine I didn't see any output after the BIOS messages stoped appearing The file systems did seem to be setup when I tried a second install.

I don't know if this is really an anaconda problem.

I don't think this machine supports EFI.

Assuming this isn't hardware dependent (which it certainly could be), this should be a final blocker.

Comment 1 Bruno Wolff III 2014-11-27 00:49:11 UTC
I guess this wouldn't be a blocker if it was specific to the Games Spin (or 
even XFCE that it is based on), but it doesn't like something that would be tied to a particular desktop.

Comment 2 Kamil Páral 2014-11-27 12:51:02 UTC
Bruno, can you please attach the logs? Boot the LiveCD again, mount the installed partitions, and attach everything from /var/log/anaconda.

How did you create the boot medium - CD or USB, and created how?

Also, can you please try the same approach with Workstation LiveCD? Thanks.

Comment 3 Bruno Wolff III 2014-11-27 14:20:56 UTC
Created attachment 962062 [details]
install log file (anaconda.log)

I used the TC4 i686 Games spin iso dd'd to a usb drive to run a live image and then used install to hard drive from that.

Comment 4 Bruno Wolff III 2014-11-27 14:21:47 UTC
Created attachment 962063 [details]
install log file (ifcfg.log)

Comment 5 Bruno Wolff III 2014-11-27 14:22:46 UTC
Created attachment 962064 [details]
install log file (journal.log)

Comment 6 Bruno Wolff III 2014-11-27 14:27:28 UTC
Created attachment 962066 [details]
install log file (packaging.log)

Comment 7 Bruno Wolff III 2014-11-27 14:28:08 UTC
ks-script-Q92f5N.log is empty.

Comment 8 Bruno Wolff III 2014-11-27 14:29:11 UTC
Created attachment 962067 [details]
install log file (program.log)

Comment 9 Bruno Wolff III 2014-11-27 14:30:00 UTC
Created attachment 962069 [details]
install log file (storage.log)

Comment 10 Kamil Páral 2014-11-27 15:42:45 UTC
I see this in the program.log:

14:40:57,141 INFO program: Running... new-kernel-pkg --mkinitrd --dracut --depmod --update 3.17.4-300.fc21.i686
14:41:18,200 INFO program: 
14:41:18,202 INFO program: gzip: stdout: No space left on device
14:41:18,202 INFO program: cpio: write error: Broken pipe
14:41:18,203 INFO program: dracut: creation of /boot/initramfs-3.17.4-300.fc21.i686.img failed
14:41:18,204 INFO program: mkinitrd failed
14:41:18,205 DEBUG program: Return code: 1

Have you created a fresh /boot partition, or have you reused an existing one?
How large is it?
Can you confirm that there's no free space?
Has anaconda claimed that the installation completed successfully? It should have said that it failed. Weren't you warned?

Comment 11 Bruno Wolff III 2014-11-28 05:02:48 UTC
I did the install twice. Both times I thought it completed successfully according to anaconda. /boot was supposed to be 100 MiB. For the second install I reused the partitions and luks containers, but believe I asked to reformat all of these with new ext4 filesystems. It's kind of late now, so I'll check the /boot file system tomorrow to see if it is really over size.

Comment 12 Bruno Wolff III 2014-11-28 17:35:59 UTC
This is probably going to be user error.

I did check /boot and it was at 91 out 100 MB. So it could have been full at some point during the install. It looked like everything the was needed was there with reasonable sizes.

What I think the real problem is, is that I didn't include a biosboot partition.

I am retesting now with TC4 using 200 MiB for /boot install of 100 MiB. And I have included a 1 MiB biosboot partition. The results should be available within an hour.

Comment 13 Adam Williamson 2014-11-28 17:44:55 UTC
anaconda should've failed earlier if there was no biosboot partition. From storage.log I don't see any GPT disks involved, so there shouldn't be any need for a biosboot.

Comment 14 Bruno Wolff III 2014-11-28 18:12:56 UTC
Now I am thinking the issue was the bios trying to boot off the USB attached externel drive before the internal drive. I am not sure why that would be a problem now when it wasn't when Windows was installed on that box. (I am just replacing XP with Fedora on that box because my wife doesn't want to use it any more.)

When I changed the boot order to not check USB devices it seemed to behave as expected.

It's possible that the install should have done something to the MBR on the external drive that wasn't done, but that wouldn't be a blocker. So I am going to remove that.

I'm going to test wiping the external drive entirely and setting it back up and see if that allows me to change the boot order back. If that works it suggests there is still a bug here, if not, then it is a local bios issue.

Comment 15 Bruno Wolff III 2014-11-29 04:19:25 UTC
So this looks like it might be an issue where booting off only one of the disks works correctly. When I cleared the first 512 bytes (I think I should have just done 128), then the system starting booting. (It appears to have hung part way through because I got the partition table as well as the MRB on the second disk).
Because the second disk is an external disk, when I have the bios set to boot off usb first (for testing live images), then it will try that disk if there appears to be a valid MBR there, otherwise it seems to boot off of the internal drive and things work.

Comment 16 Bruno Wolff III 2014-11-29 18:50:30 UTC
I tried RC1 and am seeing the same problem. No partition is marked as bootable for /dev/sdb. There is code in the first 466 bytes. However zeroing those bytes still had the bios trying to boot off sdb and failing.
I'm going to attach the anaconda logs and the mbr from this try. I still can't tell if this is anaconda's issue or bios flakiness.

Comment 17 Bruno Wolff III 2014-11-29 18:51:15 UTC
Created attachment 962779 [details]
rc1 anaconda.log

Comment 18 Bruno Wolff III 2014-11-29 18:52:17 UTC
Created attachment 962780 [details]
rc1 ifcfg.log

Comment 19 Bruno Wolff III 2014-11-29 18:53:12 UTC
Created attachment 962781 [details]
rc1 journal.log

Comment 20 Bruno Wolff III 2014-11-29 18:54:10 UTC
Created attachment 962782 [details]
rc1 packaging.log

Comment 21 Bruno Wolff III 2014-11-29 18:54:44 UTC
Created attachment 962783 [details]
rc1 program.log

Comment 22 Bruno Wolff III 2014-11-29 18:55:26 UTC
Created attachment 962784 [details]
rc1 storage.log

Comment 23 Bruno Wolff III 2014-11-29 18:56:06 UTC
Created attachment 962785 [details]
rc1 mbr

Comment 24 Adam Williamson 2014-11-29 19:09:27 UTC
Fedora installed the bootloader to sda:

anaconda.log
11:41:17,835 INFO anaconda: bootloader stage1 target device is sda
11:41:17,835 INFO anaconda: bootloader stage2 target device is sda1
program.log
11:41:18,455 INFO program: Running... grub2-install --no-floppy /dev/sda
11:41:36,472 INFO program: Installing for i386-pc platform.
11:41:36,473 INFO program: Installation finished. No error reported.

If you don't explicitly set a 'boot disk' on the Full Disk Summary and Bootloader page, anaconda will use the first disk that passes its checks as the 'boot disk' (the disk to whose MBR it installs grub2 stage1, referred to as 'stage1 target' above).

What disk your firmware attempts to boot from is, for the BIOS case, something anaconda has no control over. It's entirely up to you and your firmware. If it's trying to boot from sdb, that is probably because you have told it to - check the boot order configuration in your firmware UI.

Comment 25 Bruno Wolff III 2014-11-29 19:57:27 UTC
I realize that anaconda can't control which drive the bios boots from. When it was set up with Windows I think it used to skip over the external USB drive even when it was before the main Windows drive in the boot order. I thought maybe that was due to some difference between how ananconda set up the MBR and how it 
the external drive was set up under Windows. But maybe it really did start booting from there and correctly finish booting from the other drive.

The reason I care is the BIOS boot order choices suck. If I don't boot off USB devices then I have to manually enter a boot selection menu during boot to boot live images and if I turn it on, then if there isn't a live image it will try to boot off the external drive and fail.

I'll see if I can run grub2-install on that drive and get things to work. It's odd that it isn't run on both.

Also I was kind of looking for where I choose the boot drive and missed it. I look more carefully, but I expected it to be easy to notice.

Comment 26 Bruno Wolff III 2014-11-29 21:12:23 UTC
Manually doing grub2-install /dev/sdb seemed to fix things.

I did another install and found a page that showed which devices were boot devices and sda had a check, sdb did not have a check, and I couldn't figure any way to change those settings.

Comment 27 Adam Williamson 2014-11-29 22:53:58 UTC
There's a button at the bottom of that pane which lets you pick the selected disk as the boot disk. Click it and the check will move. But yes, there's a ui bug there. The screen uses the 'clickable checkbox' image but you can't actually click it. Gtk for provide a different check mark widget for use in such non-clickable situations, anaconda should use it. I actually noticed the same thing yesterday and was going to try and patch it if I could find time.

I'm not sure why you'd expect anaconda to install to the MBR of every install target disk, though. It never has, not going all the way back to oldui and even rhl. It's always used the design that you nominate a single disk to install to the MBR of.

Comment 28 Bruno Wolff III 2014-11-30 01:58:52 UTC
OK. Thanks. I think this one is beat to death now.

Comment 29 Adam Williamson 2014-12-05 17:59:51 UTC
For the record it looks like fixing the 'ui bug' isn't straightforward - the GTK+ element being used there only has a few options for selection-type widgets and there are none really which just indicate selection. You could pick radio buttons instead of checkboxes, but people expect those to be clickable too, and they're not supposed to be used to indicate 'no selection' (one radio button is always supposed to be active), which is a valid choice on this screen.


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