Skip to content

Support updating multiple EFIs in mirrored setups #132

Closed

Description

@jlebon

Follow-up to #127 (specifically #127 (comment)). We need to update the EFI in all the devices matching the appropriate GUID, not just the one which wins the /dev/disk/by-partlabel/EFI-SYSTEM race.

Activity

  1. bgilbert commented on Jan 7, 2021

    @bgilbert
    Contributor

    One small correction: in the mirrored boot disk case, no partitions are labeled EFI-SYSTEM.

  2. jlebon commented on Dec 2, 2021

    @jlebon
    MemberAuthor

    Note that just dumbly doing a type GUID match will not work for things like multipath. We solved this in rdcore by looking for ESPs only on the same devices which back the boot partition: https://github.com/coreos/coreos-installer/blob/78e2a7a4bf8d9ddb90b5e4fb5729a2550999ad11/src/blockdev.rs#L880-L945

    Would probably make sense for bootupd to use the same heuristic (or if it finds a better heuristic to use, update coreos-installer to match).

  3. added
    jira
    enhancement
    on Jun 3, 2024
  4. travier commented on Jun 27, 2024

    @travier
    Member
  5. travier commented on Sep 2, 2024

    @travier
    Member

    As far as I could see when trying various RAID setups in Anaconda (https://docs.fedoraproject.org/en-US/fedora/f36/install-guide/install/Installing_Using_Anaconda/#sect-installation-gui-manual-partitioning-swraid), they only create a single EFI system partition.

    So Fedora CoreOS should be the only case with one per disk, unless someone use manual partitioning and explicitly set up two.

    See also: https://gitlab.com/fedora/ostree/sig/-/issues/1#note_2086744541

  6. HuijingHei commented on Sep 26, 2024

    @HuijingHei
    Contributor

    Test failed with multiple EFIs in mirrored setups (using latest bootupd in copr build):

    $ cosa run --add-disk 10G -B ../ign/mirror.bu --qemu-firmware uefi -m 4096
    [root@cosa-devsh ~]# mount -o remount,rw /boot
    [root@cosa-devsh ~]# mv /boot/bootupd-state.json .
    [root@cosa-devsh ~]# bootupctl adopt-and-update
    Running as unit: bootupd.service
    lsblk: : not a block device
    error: Failed to run lsblk
    

    mirror.bu is refered to doc

    variant: fcos
    version: 1.5.0
    boot_device:
      mirror:
        devices:
          - /dev/vda
          - /dev/vdb
    
  7. 1 remaining item

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

    enhancementjira

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions