coreos-assembler: `coreos-assembler build` failing for RHCOS during `anaconda` phase

Edit: The original error below is just a symptom of an error earlier in the build phase - https://github.com/coreos/coreos-assembler/issues/325#issuecomment-461174135


Using the latest build from quay.io[1], myself and @yuqi-zhang are observing the following error when trying to build RHCOS from the internal repo:

libguestfs: error: download: /boot/loader/grub.cfg: No such file or directory

The new instructions for setting up the working directory were followed and builds were done in the context of coreos-assembler shell.

[1] see below:

$ jq -C . /cosa/coreos-assembler-git.json 
{
  "date": "2019-02-06T17:42:44Z",
  "git": {
    "commit": "cfc9e0c39f9bd80f9f698d2274bd300308d087d7",
    "origin": "git@github.com:coreos/coreos-assembler.git",
    "dirty": "false"
  },
  "file": {
    "checksum": "7933e29e82e4c8069829379efde582de8a927e8074743fe400013a4b9ce3a7c3",
    "checksum_type": "sha256",
    "format": "tar.gz",
    "name": "coreos-assembler-git.tar.gz",
    "size": "4860593"
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

I think the relevant errors are:

19:47:28,980 INF program: Installing for i386-pc platform.
19:47:28,980 INF program: grub2-install: error: unknown filesystem.
19:47:28,981 DBG program: Return code: 1
19:47:28,983 INF program: Running in chroot '/mnt/sysimage/ostree/deploy/redhat-coreos-maipo/deploy/3ac79e869c2d42e413ad914ca985a1c520c561b6145c757f00b52db7c7bf8d2b.0'... grub2-mkconfig -o /boot/grub2/grub.cfg
19:47:29,336 INF program: Generating grub configuration file ...
19:47:29,337 INF program: /usr/sbin/grub2-probe: error: unknown filesystem.

and

19:47:29,338 INF threading: Thread Failed: AnaInstallThread (140569969612544)
19:47:29,338 DBG exception: running handleException
19:47:29,340 CRT exception: Traceback (most recent call last):

  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1656, in write
    self.install()

  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1641, in install
    raise BootLoaderError("boot loader install failed")

pyanaconda.bootloader.BootLoaderError: boot loader install failed


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 2511, in writeBootLoaderFinal
    storage.bootloader.write()

  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1660, in write
    self.write_config()

  File "/usr/lib64/python3.7/site-packages/pyanaconda/bootloader.py", line 1613, in write_config
    raise BootLoaderError("failed to write boot loader configuration")

pyanaconda.bootloader.BootLoaderError: failed to write boot loader configuration