Bug 2233759

Summary: pyanaconda.modules.common.errors.general.AnacondaError: [Errno 2] No such file or directory: '/usr/sbin/updateloaderentries'
Product: [Fedora] Fedora Reporter: ldivizio <ldivizio>
Component: anacondaAssignee: anaconda-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: anaconda-maint, jeremy.linton, ldivizio, vslavik, w
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d9e2e3b7cc5ebff73b14292904bb689310a8c81dd4eae66922d81aebb87e6717;VARIANT_ID=sway;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-26 18:01:05 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: backtrace
none
File: os_info
none
File: environ
none
File: journalctl
none
File: description
none
File: storage.log
none
File: packaging.log
none
File: program.log
none
File: nmcli_dev_list
none
File: anaconda.log
none
File: lsblk_output
none
File: dbus.log
none
File: packaging.log none

Description ldivizio@gmail.com 2023-08-23 09:59:48 UTC
Description of problem:
Anaconda terminated in the boot-loader stage.

Command:
liveinst --sdboot --noselinux

Version-Release number of selected component:
anaconda-core-39.29-1.fc39.x86_64


The following was filed automatically by anaconda:
anaconda 39.29 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 509, in _handle_method_error
    raise exception from None
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 483, in _get_method_reply
    return self._handle_method_error(error)
  File "/usr/lib/python3.12/site-packages/dasbus/client/handler.py", line 450, in _call_method
    return self._get_method_reply(
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/__init__.py", line 46, in sync_run_task
    task_proxy.Finish()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 439, in run_install_bootloader
    sync_run_task(STORAGE.get_proxy(task))
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 246, in _run
    self._task_cb(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 188, in _run
    item.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation_tasks.py", line 75, in start
    self._run()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 515, in _run_installation
    queue.start()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/installation.py", line 80, in run
    self._run_installation(
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 107, in _task_run_callback
    self._set_result(self.run())
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 94, in _thread_run_callback
    self._task_run_callback()
  File "/usr/lib64/python3.12/threading.py", line 989, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 280, in run
    threading.Thread.run(self)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/threads.py", line 171, in raise_if_error
    raise exc_info[1]
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/task.py", line 173, in finish
    thread_manager.raise_if_error(self._thread_name)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/ui/gui/spokes/installation_progress.py", line 75, in _on_installation_done
    self._task.finish()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/signal.py", line 41, in emit
    func(obj, *args, **kargs)
  File "/usr/lib64/python3.12/site-packages/pyanaconda/modules/common/task/runnable.py", line 115, in _task_stopped_callback
    self._stopped_signal.emit()
  File "/usr/lib64/python3.12/site-packages/pyanaconda/core/async_utils.py", line 68, in _idle_method
    func(*args, **kwargs)
pyanaconda.modules.common.errors.general.AnacondaError: [Errno 2] No such file or directory: '/usr/sbin/updateloaderentries'

Additional info:
cmdline:        /usr/bin/python3  /sbin/anaconda --liveinst --graphical --sdboot --noselinux
executable:     /sbin/anaconda
hashmarkername: anaconda
product:        Fedora
package:        anaconda-core-39.29-1.fc39.x86_64
reason:         pyanaconda.modules.common.errors.general.AnacondaError: [Errno 2] No such file or directory: '/usr/sbin/updateloaderentries'
release_type:   pre-release
type:           anaconda
release:        Fedora release 39 (Thirty Nine)
cmdline_file:   BOOT_IMAGE=/images/pxeboot/vmlinuz root=live:CDLABEL=Fedora-Sway-Live-39-20230822-n-0 rd.live.image quiet rhgb
addons:         com_redhat_kdump
kernel:         6.5.0-0.rc7.20230821gitf7757129e3de.50.fc39.x86_64
version:        39
other involved packages: python3-dasbus-1.7-4.fc39.noarch, anaconda-gui-39.29-1.fc39.x86_64, python3-libs-3.12.0~rc1-1.fc39.x86_64

Comment 1 ldivizio@gmail.com 2023-08-23 09:59:53 UTC
Created attachment 1984740 [details]
File: anaconda-tb

Comment 2 ldivizio@gmail.com 2023-08-23 09:59:55 UTC
Created attachment 1984741 [details]
File: backtrace

Comment 3 ldivizio@gmail.com 2023-08-23 09:59:56 UTC
Created attachment 1984742 [details]
File: os_info

Comment 4 ldivizio@gmail.com 2023-08-23 09:59:58 UTC
Created attachment 1984743 [details]
File: environ

Comment 5 ldivizio@gmail.com 2023-08-23 10:00:01 UTC
Created attachment 1984744 [details]
File: journalctl

Comment 6 ldivizio@gmail.com 2023-08-23 10:00:03 UTC
Created attachment 1984745 [details]
File: description

Comment 7 ldivizio@gmail.com 2023-08-23 10:00:05 UTC
Created attachment 1984746 [details]
File: storage.log

Comment 8 ldivizio@gmail.com 2023-08-23 10:00:07 UTC
Created attachment 1984747 [details]
File: packaging.log

Comment 9 ldivizio@gmail.com 2023-08-23 10:00:09 UTC
Created attachment 1984748 [details]
File: program.log

Comment 10 ldivizio@gmail.com 2023-08-23 10:00:11 UTC
Created attachment 1984749 [details]
File: nmcli_dev_list

Comment 11 ldivizio@gmail.com 2023-08-23 10:00:13 UTC
Created attachment 1984750 [details]
File: anaconda.log

Comment 12 ldivizio@gmail.com 2023-08-23 10:00:15 UTC
Created attachment 1984751 [details]
File: lsblk_output

Comment 13 ldivizio@gmail.com 2023-08-23 10:00:16 UTC
Created attachment 1984752 [details]
File: dbus.log

Comment 14 ldivizio@gmail.com 2023-08-23 10:00:18 UTC
Created attachment 1984753 [details]
File: packaging.log

Comment 15 Jeremy Linton 2023-09-26 18:00:34 UTC
So the live image is a pre-existing image, that has been created with grub, which anaconda is then trying to copy to the disk. To make this work, either anaconda needs to know enough to remove the grub images, and rebuild the image with systemd-boot, or the live image needs to be created with bootloader --sdboot and then the installer on the live image should work. Of course there are gochas at the moment with both cases, although I've been looking at option two here, which is assuring that live images can be created with systemd-boot by removing the grub dependencies.

But, for the time being the plan appears to be to simply disable systemd-boot on live media.

There is an existing bz #2234638 which is being used to track this problem. So i'm going to dupe this against that one despite this one being older.

Comment 16 Jeremy Linton 2023-09-26 18:01:05 UTC

*** This bug has been marked as a duplicate of bug 2234638 ***