Bug 1438283

Summary: FileNotFoundError: [Errno 2] No such file or directory: 'grub2-set-default'
Product: [Fedora] Fedora Reporter: Torfinn Ingolfsen <tingox+redhat>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora, vponcova
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c3e27a37eae2173ff7d190e7468438c616725aa39928823d128bbcdc00d57890;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:45:50 UTC Type: ---
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
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: lvm.log
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log
none
File: packaging.log none

Description Torfinn Ingolfsen 2017-04-02 18:17:30 UTC
Description of problem:
1. Install another operating system on a UEFI-only machine (I installed FreeBSD 11.0-release on a HP Elitebook Folio 9470m), leave space for other operating systems.
2. Boot from a Fedora 24 liveUSB (I used the Xfce spin) and try to install F24. select manual partitioning, create new root and swap paritions, but select the existing ESP partition 
(the only thing you update is mooun point to /boot/efi)
3. Begin installation - experience crash in installer when it tries to write the boot loader.

Version-Release number of selected component:
anaconda-core-24.13.7-1.fc24.x86_64

The following was filed automatically by anaconda:
anaconda 24.13.7-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.5/subprocess.py", line 1544, in _execute_child
    raise child_exception_type(errno_num, err_msg)
  File "/usr/lib64/python3.5/subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/iutil.py", line 201, in startProgram
    preexec_fn=preexec, cwd=root, env=env, **kwargs)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/iutil.py", line 279, in _run_program
    env_prune=env_prune)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/iutil.py", line 355, in execWithRedirect
    log_output=log_output, binary_output=binary_output)[0]
  File "/usr/lib64/python3.5/site-packages/pyanaconda/iutil.py", line 332, in execInSysroot
    return execWithRedirect(command, argv, stdin=stdin, root=getSysroot())
  File "/usr/lib64/python3.5/site-packages/pyanaconda/bootloader.py", line 1563, in write_config
    rc = iutil.execInSysroot("grub2-set-default", [str(default_index)])
  File "/usr/lib64/python3.5/site-packages/pyanaconda/bootloader.py", line 1776, in write
    self.write_config()
  File "/usr/lib64/python3.5/site-packages/pyanaconda/bootloader.py", line 2370, in writeBootLoaderFinal
    storage.bootloader.write()
  File "/usr/lib64/python3.5/site-packages/pyanaconda/bootloader.py", line 2448, in writeBootLoader
    writeBootLoaderFinal(storage, payload, instClass, ksdata)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/install.py", line 243, in doInstall
    writeBootLoader(storage, payload, instClass, ksdata)
  File "/usr/lib64/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.5/site-packages/pyanaconda/threads.py", line 253, in run
    threading.Thread.run(self, *args, **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: 'grub2-set-default'

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-Xfce-Live-24-1-2 rd.live.image quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.5.5-300.fc24.x86_64
other involved packages: system-python-libs-3.5.1-7.fc24.x86_64
product:        Fedora
release:        Fedora release 24 (Twenty Four)
reproducible:   Not sure how to reproduce the problem
type:           anaconda
version:        24

Potential duplicate: bug 1283054

Comment 1 Torfinn Ingolfsen 2017-04-02 18:17:57 UTC
Created attachment 1268259 [details]
File: anaconda-tb

Comment 2 Torfinn Ingolfsen 2017-04-02 18:17:59 UTC
Created attachment 1268260 [details]
File: anaconda.log

Comment 3 Torfinn Ingolfsen 2017-04-02 18:18:01 UTC
Created attachment 1268261 [details]
File: environ

Comment 4 Torfinn Ingolfsen 2017-04-02 18:18:04 UTC
Created attachment 1268262 [details]
File: journalctl

Comment 5 Torfinn Ingolfsen 2017-04-02 18:18:07 UTC
Created attachment 1268263 [details]
File: lsblk_output

Comment 6 Torfinn Ingolfsen 2017-04-02 18:18:11 UTC
Created attachment 1268264 [details]
File: lvm.log

Comment 7 Torfinn Ingolfsen 2017-04-02 18:18:14 UTC
Created attachment 1268265 [details]
File: nmcli_dev_list

Comment 8 Torfinn Ingolfsen 2017-04-02 18:18:17 UTC
Created attachment 1268266 [details]
File: os_info

Comment 9 Torfinn Ingolfsen 2017-04-02 18:18:23 UTC
Created attachment 1268267 [details]
File: program.log

Comment 10 Torfinn Ingolfsen 2017-04-02 18:18:26 UTC
Created attachment 1268268 [details]
File: storage.log

Comment 11 Torfinn Ingolfsen 2017-04-02 18:18:29 UTC
Created attachment 1268269 [details]
File: ifcfg.log

Comment 12 Torfinn Ingolfsen 2017-04-02 18:18:31 UTC
Created attachment 1268270 [details]
File: packaging.log

Comment 13 Fedora End Of Life 2017-07-26 00:20:43 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. 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 EOL if it remains open with a Fedora  'version'
of '24'.

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.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 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 this bug is closed as described in the policy above.

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 14 Fedora End Of Life 2017-08-08 19:45:50 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 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.