Bug 1636368 - pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Summary: pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Keywords:
Status: CLOSED NOTABUG
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-05 08:46 UTC by mildlyinteresting
Modified: 2018-11-17 22:15 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-17 22:15:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (2.16 MB, text/plain)
2018-10-05 08:46 UTC, mildlyinteresting
no flags Details
File: anaconda.log (61.53 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: dbus.log (3.17 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: environ (637 bytes, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: hawkey.log (465.73 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: lorax-packages.log (25.28 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: lsblk_output (1.53 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: lvm.log (460.12 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: nmcli_dev_list (1.73 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: os_info (554 bytes, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: program.log (78.18 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: storage.log (199.88 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: syslog (313.96 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: ifcfg.log (2.30 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details
File: packaging.log (216.99 KB, text/plain)
2018-10-05 08:47 UTC, mildlyinteresting
no flags Details

Description mildlyinteresting 2018-10-05 08:46:46 UTC
Description of problem:
When trying to install a minimal version of Fedora 29 in a VirtualBox VM, the bootloader cannot be installed. 

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
blivet-gui-utils.log: 
cmdline:        /usr/bin/python3  /sbin/anaconda
cmdline_file:   BOOT_IMAGE=vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=Fedora-WS-dvd-x86_64-29 quiet
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.18.5-300.fc29.x86_64
product:        Fedora
release:        Cannot get release name.
release_type:   pre-release
type:           anaconda
version:        29

Comment 1 mildlyinteresting 2018-10-05 08:46:59 UTC
Created attachment 1490780 [details]
File: anaconda-tb

Comment 2 mildlyinteresting 2018-10-05 08:47:01 UTC
Created attachment 1490781 [details]
File: anaconda.log

Comment 3 mildlyinteresting 2018-10-05 08:47:03 UTC
Created attachment 1490782 [details]
File: dbus.log

Comment 4 mildlyinteresting 2018-10-05 08:47:04 UTC
Created attachment 1490783 [details]
File: environ

Comment 5 mildlyinteresting 2018-10-05 08:47:07 UTC
Created attachment 1490784 [details]
File: hawkey.log

Comment 6 mildlyinteresting 2018-10-05 08:47:09 UTC
Created attachment 1490785 [details]
File: lorax-packages.log

Comment 7 mildlyinteresting 2018-10-05 08:47:10 UTC
Created attachment 1490786 [details]
File: lsblk_output

Comment 8 mildlyinteresting 2018-10-05 08:47:13 UTC
Created attachment 1490787 [details]
File: lvm.log

Comment 9 mildlyinteresting 2018-10-05 08:47:15 UTC
Created attachment 1490788 [details]
File: nmcli_dev_list

Comment 10 mildlyinteresting 2018-10-05 08:47:16 UTC
Created attachment 1490789 [details]
File: os_info

Comment 11 mildlyinteresting 2018-10-05 08:47:18 UTC
Created attachment 1490790 [details]
File: program.log

Comment 12 mildlyinteresting 2018-10-05 08:47:20 UTC
Created attachment 1490791 [details]
File: storage.log

Comment 13 mildlyinteresting 2018-10-05 08:47:28 UTC
Created attachment 1490792 [details]
File: syslog

Comment 14 mildlyinteresting 2018-10-05 08:47:29 UTC
Created attachment 1490793 [details]
File: ifcfg.log

Comment 15 mildlyinteresting 2018-10-05 08:47:31 UTC
Created attachment 1490794 [details]
File: packaging.log

Comment 16 Scott Dowdle 2018-10-06 00:03:16 UTC
I'm running into this too on my most recent F29 prerelease remixes. :(

Comment 17 Jiri Konecny 2018-10-08 08:04:39 UTC
Based on this from program log:

10:34:02,194 INF program: error: ../grub-core/script/lexer.c:337:$.
10:34:02,194 INF program: error: ../grub-core/script/lexer.c:337:syntax error.
10:34:02,194 INF program: error: ../grub-core/script/lexer.c:337:Incorrect command.
10:34:02,195 INF program: error: ../grub-core/script/lexer.c:337:syntax error.
10:34:02,195 INF program: Syntax error at line 79
10:34:02,195 INF program: Syntax errors are detected in generated GRUB config file.
10:34:02,196 INF program: Ensure that there are no errors in /etc/default/grub
10:34:02,196 INF program: and /etc/grub.d/* files or please file a bug report with
10:34:02,197 INF program: /boot/grub2/grub.cfg.new file attached.
10:34:02,197 DBG program: Return code: 1

This looks like a grub2 issue in scripts.

Switching components.

Comment 18 Scott Dowdle 2018-10-08 17:01:09 UTC
Turns out I had a few outdated packages in my local repo... that I had put there... because they hadn't hit updates testing or stable yet.  Getting rid of those, I'm not having the problem anymore.


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