Bug 1635554 - pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Summary: pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cd124e80dd2a6995f69f16578dd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-03 08:46 UTC by Alessio
Modified: 2018-10-08 08:07 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-10-08 08:07:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (2.09 MB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: anaconda.log (51.89 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: dbus.log (3.17 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: environ (637 bytes, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: hawkey.log (746.48 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: lorax-packages.log (24.94 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: lsblk_output (1.64 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: nmcli_dev_list (1.60 KB, text/plain)
2018-10-03 08:46 UTC, Alessio
no flags Details
File: os_info (554 bytes, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details
File: program.log (47.67 KB, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details
File: storage.log (91.17 KB, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details
File: syslog (315.43 KB, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details
File: ifcfg.log (2.99 KB, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details
File: packaging.log (373.09 KB, text/plain)
2018-10-03 08:47 UTC, Alessio
no flags Details

Description Alessio 2018-10-03 08:46:30 UTC
Description of problem:


Version-Release number of selected component:
anaconda-29.24.3

The following was filed automatically by anaconda:
anaconda 29.24.3 exception report
Traceback (most recent call first):
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1629, in write_config
    raise BootLoaderError("failed to write boot loader configuration")
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1676, in write
    self.write_config()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 2527, in writeBootLoaderFinal
    storage.bootloader.write()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 2608, in writeBootLoader
    writeBootLoaderFinal(storage, payload, instClass, ksdata)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
    self._task(*self._task_args, **self._task_kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 472, in start
    self.run_task()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation_tasks.py", line 304, in start
    item.start()
  File "/usr/lib64/python3.7/site-packages/pyanaconda/installation.py", line 375, in doInstall
    installation_queue.start()
  File "/usr/lib64/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib64/python3.7/site-packages/pyanaconda/threading.py", line 286, in run
    threading.Thread.run(self)
pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration

Additional info:
addons:         com_redhat_kdump, com_redhat_docker
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-29 inst.text console=ttyS0
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.18.10-300.fc29.x86_64
product:        Fedora
release:        Cannot get release name.
release_type:   pre-release
type:           anaconda
version:        29

Potential duplicate: bug 1632980

Comment 1 Alessio 2018-10-03 08:46:40 UTC
Created attachment 1489876 [details]
File: anaconda-tb

Comment 2 Alessio 2018-10-03 08:46:43 UTC
Created attachment 1489877 [details]
File: anaconda.log

Comment 3 Alessio 2018-10-03 08:46:45 UTC
Created attachment 1489878 [details]
File: dbus.log

Comment 4 Alessio 2018-10-03 08:46:46 UTC
Created attachment 1489879 [details]
File: environ

Comment 5 Alessio 2018-10-03 08:46:53 UTC
Created attachment 1489880 [details]
File: hawkey.log

Comment 6 Alessio 2018-10-03 08:46:56 UTC
Created attachment 1489881 [details]
File: lorax-packages.log

Comment 7 Alessio 2018-10-03 08:46:58 UTC
Created attachment 1489882 [details]
File: lsblk_output

Comment 8 Alessio 2018-10-03 08:46:59 UTC
Created attachment 1489883 [details]
File: nmcli_dev_list

Comment 9 Alessio 2018-10-03 08:47:01 UTC
Created attachment 1489884 [details]
File: os_info

Comment 10 Alessio 2018-10-03 08:47:03 UTC
Created attachment 1489885 [details]
File: program.log

Comment 11 Alessio 2018-10-03 08:47:05 UTC
Created attachment 1489886 [details]
File: storage.log

Comment 12 Alessio 2018-10-03 08:47:08 UTC
Created attachment 1489887 [details]
File: syslog

Comment 13 Alessio 2018-10-03 08:47:09 UTC
Created attachment 1489888 [details]
File: ifcfg.log

Comment 14 Alessio 2018-10-03 08:47:13 UTC
Created attachment 1489889 [details]
File: packaging.log

Comment 15 Jiri Konecny 2018-10-03 09:34:20 UTC
I found this error in the program.log:

/etc/grub.d/01_fallback_counting: line 4: ${boot_counter}-1: syntax error: operand expected (error token is "${boot_counter}-1")

It looks like grub2 issue. Switching component.

Comment 16 Alessio 2018-10-03 21:03:24 UTC
It happened again.
Installing F29 server in a VM (KVM) using text console (FWIW).

Partitioning Options
2) [x] Use All Space

Partition Scheme Options
1) [x] Standard Partition


Progress

.
Setting up the installation environment
.
Configuring storage
..
Creating disklabel on /dev/sda
Creating swap on /dev/sda2
Creating xfs on /dev/sda3
Creating ext4 on /dev/sda1
..
Running pre-installation scripts

[...]

Verifying zip.x86_64 (596/596)
.
Configuring storage
.
Installing boot loader
================================================================================
================================================================================
Question

 The following error occurred while installing the boot loader. The system will
 not be bootable. Would you like to ignore this and continue with installation?
 
 failed to write boot loader configuration

Please respond 'yes' or 'no': no

An unknown error has occured, look at the /tmp/anaconda-tb* file(s) for more details

Comment 17 Alessio 2018-10-03 21:05:52 UTC
Using this iso: Fedora-Server-netinst-x86_64-29-20181001.n.0.iso

Comment 18 Alberto Ruiz 2018-10-04 11:30:06 UTC
What version of grub2 is this? Seems related to this commit: https://src.fedoraproject.org/rpms/grub2/c/f0ceaa75979540c04975611b0d7219faf39c2538

Comment 19 Jiri Konecny 2018-10-05 07:47:52 UTC
Alberto based on the packaging.log these grub2 packages were installed:

grub2-common-1:2.02-60.fc29.noarch
grub2-pc-modules-1:2.02-60.fc29.noarch
grub2-tools-minimal-1:2.02-60.fc29.x86_64
grub2-tools-1:2.02-60.fc29.x86_64
grub2-tools-extra-1:2.02-60.fc29.x86_64
grub2-pc-1:2.02-60.fc29.x86_64

Comment 20 Alessio 2018-10-06 20:47:25 UTC
FYI, Fedora-Server-netinst-x86_64-29-20181005.n.0.iso can be installed successfully.

Comment 21 Jiri Konecny 2018-10-08 08:07:47 UTC
Thanks Alessio for the info. In that case I'm closing this issue. I guess this was fixed by something else already.

If the issue will show up again, please feel free to open this issue.


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