Skip to content

grub.cfg and bootuuid.cfg not synced to secondary ESPs on multi-device setups #1076

Open

Description

@ckyrouac

Summary

On multi-device setups (e.g. RAID 1 with an ESP per disk, or multi-disk installs via --device), grubconfigs::install() only writes grub.cfg and bootuuid.cfg to the single ESP currently mounted at /boot/efi. Secondary ESPs on other disks are left without these files. If the system boots from a disk whose ESP was not the one mounted during install, GRUB drops to a rescue shell because it cannot find its configuration.

Steps to Reproduce

  1. Set up a multi-device configuration with an ESP on each disk (e.g. RAID 1, or install with bootupctl install --device /dev/sda --device /dev/sdb)
  2. Run bootupctl install (or let bootc perform the install)
  3. Inspect the ESPs on each disk

Expected Behavior

All ESPs should contain EFI/<vendor>/grub.cfg and EFI/<vendor>/bootuuid.cfg so the system can boot from any disk.

Actual Behavior

Only the ESP mounted at /boot/efi receives these files. The other ESPs have the EFI binaries (shim, grub) but are missing the GRUB configuration files, making them unable to complete the boot process.

Root Cause

grubconfigs::install() writes the static EFI grub.cfg and bootuuid.cfg into the target_root's /boot/efi/EFI/<vendor>/ directory. It has no awareness of additional ESP partitions on other devices. While efi::install() handles installing EFI binaries to all ESPs via find_colocated_esps(), the GRUB config writing step was not extended with the same multi-device logic.

Impact

  • Systems with redundant boot disks cannot boot from the secondary disk if the primary fails
  • GRUB drops to a rescue shell with no grub.cfg present
  • Defeats the purpose of redundant boot disk configurations

Related

Activity

  1. added a commit that references this issue on Mar 27, 2026
    2a7ccea
  2. added a commit that references this issue on Apr 3, 2026
    d1247bd
  3. travier commented on May 26, 2026

    @travier
    Member

    This is due to an important difference in partition layouts between CoreOS systems that use Ignition and Anaconda ones.

    On CoreOS/ignition systems, the system starts with a single disk set up and then Ignition sets up the RAID as needed in the initramfs, replicating the /boot partition on each devices.

    Anaconda does not use this layout for RAID setups and only creates a single /boot partition on the "first" disk of RAID setups. This apparently intentional from discussion with the bootloader team as having multiple copy of /boot means multiple copies of the config and bootloaders, etc. and this is not supported in package mode.

    How did you install your system to reach such a state?

  4. ckyrouac commented on Jun 2, 2026

    @ckyrouac
    CollaboratorAuthor

    How did you install your system to reach such a state?

    This was tested using bootc install to-filesystem onto a RAID1 array (software backed) where each disk has an ESP partition. This is documenting unfinished work from #1068.

  5. cgwalters commented on Jun 2, 2026

    @cgwalters
    Member

    This intersects a bit with https://redhat.atlassian.net/browse/RHEL-171401 - ideally our static grub at least for EFI is just a single binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions