Bug 952644

Summary: efibootmgr fails silently when set_variable() fails, though the kernel provides a status that could be used to fail more informatively
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: efibootmgrAssignee: Peter Jones <pjones>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: awilliam, fweimer, g.kaviyarasu, jonathan, mkolman, pjones, sbueno, surya_prabhakar, vanmeeuwen+fedora
Target Milestone: ---Keywords: Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 10:09:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
anaconda-logs-20130416.tar.gz
none
anaconda.log
none
anaconda-tb-ALQ2K0
none
anaconda-yum.conf
none
ifcfg.log
none
packaging.log
none
program.log
none
storage.log
none
storage.state
none
syslog
none
X.log none

Description Florian Weimer 2013-04-16 11:05:05 UTC
Created attachment 736283 [details]
anaconda-logs-20130416.tar.gz

I tried to install from the RC3 DVD installation media (x86_64): https://dl.fedoraproject.org/pub/alt/stage/19-Alpha-RC3/Fedora/x86_64/iso/Fedora-19-Alpha-x86_64-DVD.iso

The installer booted, I could select a destination disk (did not change partitioning), set a root and user password.   However, the installation did not complete successfully, and anaconda reported an "unknown error".  I switched consoles, but then the X server crashed.

I'm attaching the log files I could recover from the failed installation attempt.  I saw this, I don't know how relevant it is:

10:08:29,065 WARNING kernel:[ 1616.817187] efivars: set_variable() failed: status=8000000000000009

Comment 1 Chris Lumens 2013-04-16 14:01:21 UTC
Please attach logs as individual, uncompressed attachments.  Doing anything else prevents us from searching bugzilla in the future.

Comment 2 Florian Weimer 2013-04-16 14:08:50 UTC
Created attachment 736310 [details]
anaconda.log

Comment 3 Florian Weimer 2013-04-16 14:08:57 UTC
Created attachment 736311 [details]
anaconda-tb-ALQ2K0

Comment 4 Florian Weimer 2013-04-16 14:09:00 UTC
Created attachment 736312 [details]
anaconda-yum.conf

Comment 5 Florian Weimer 2013-04-16 14:09:03 UTC
Created attachment 736313 [details]
ifcfg.log

Comment 6 Florian Weimer 2013-04-16 14:09:08 UTC
Created attachment 736314 [details]
packaging.log

Comment 7 Florian Weimer 2013-04-16 14:09:12 UTC
Created attachment 736315 [details]
program.log

Comment 8 Florian Weimer 2013-04-16 14:09:16 UTC
Created attachment 736316 [details]
storage.log

Comment 9 Florian Weimer 2013-04-16 14:09:22 UTC
Created attachment 736317 [details]
storage.state

Comment 10 Florian Weimer 2013-04-16 14:09:26 UTC
Created attachment 736318 [details]
syslog

Comment 11 Florian Weimer 2013-04-16 14:09:32 UTC
Created attachment 736319 [details]
X.log

Comment 12 Chris Lumens 2013-05-01 18:41:12 UTC
06:08:28,969 INFO program: Running... efibootmgr -b 0001 -B
06:08:29,073 DEBUG program: Return code: 1

That's not especially helpful.

Comment 13 Florian Weimer 2013-05-01 19:19:16 UTC
(In reply to comment #12)
> 06:08:28,969 INFO program: Running... efibootmgr -b 0001 -B
> 06:08:29,073 DEBUG program: Return code: 1
> 
> That's not especially helpful.

Not sure if this is my fault (IOW, so is your comment).

Is there something I can do post-installation to obtain more data?

Comment 14 Fedora Admin XMLRPC Client 2013-10-09 20:37:41 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 15 Adam Williamson 2014-02-03 19:25:29 UTC
florian: 8000000000000009 is our old friend EFI_OUT_OF_RESOURCES , which basically means this case is quite likely to have related to our old friend the Samsung bricking bug. Post F19, the kernel stuff was tweaked to still not brick Samsungs while being less likely to run into EFI_OUT_OF_RESOURCES on other systems; did you try F20 on this system? There's a reasonable chance it'd work.

(note: the fact that efibootmgr fails silently when set_variable() fails is what clumens was referring to in c#12, and is indeed something that efibootmgr could do better).

Comment 16 Adam Williamson 2014-02-03 19:26:55 UTC
still valid in current Rawhide, as we're still on 0.5.4.

Comment 17 Adam Williamson 2014-02-03 19:57:53 UTC
Filed upstream as https://github.com/vathpela/efivar/issues/4 - we just need to keep track of when pjones gets time to fix it upstream and the fixed version lands in Fedora.

Comment 18 Florian Weimer 2014-02-05 08:48:47 UTC
(In reply to Adam Williamson from comment #15)
> florian: 8000000000000009 is our old friend EFI_OUT_OF_RESOURCES , which
> basically means this case is quite likely to have related to our old friend
> the Samsung bricking bug. Post F19, the kernel stuff was tweaked to still
> not brick Samsungs while being less likely to run into EFI_OUT_OF_RESOURCES
> on other systems; did you try F20 on this system? There's a reasonable
> chance it'd work.

I installed F20 on my test machine, and the installation completed.  This is a dual-boot environment with Windows 8, and the installer failed to bump the priority over the Fedora entry over the Windows boot loader entry.  However, booting Fedora was possible after going through the Windows boot selector.

Comment 19 Peter Jones 2014-10-20 19:26:13 UTC
One of the following should fix the error code reporting issue:

https://admin.fedoraproject.org/updates/efibootmgr-0.10.0-1.fc19
https://admin.fedoraproject.org/updates/efibootmgr-0.10.0-1.fc20
https://admin.fedoraproject.org/updates/efibootmgr-0.10.0-1.fc21
(or the efibootmgr-0.10.0-1.fc22 package in rawhide )

Comment 20 Jaroslav Reznik 2015-03-03 17:09:28 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 21 Fedora End Of Life 2016-07-19 10:09:21 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 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.