Bug 1636368

Summary: pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration
Product: [Fedora] Fedora Reporter: mildlyinteresting
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: anaconda-maint-list, dowdle, jkonecny, jonathan, kellin, lkundrak, orion, pjones, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cd124e80dd2a6995f69f16578dd5f7ea7c7872b0a10f32a13c544fb7c8a29805;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-17 22:15:57 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: dbus.log
none
File: environ
none
File: hawkey.log
none
File: lorax-packages.log
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: syslog
none
File: ifcfg.log
none
File: packaging.log none

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.