Skip to content

[Composefs] "Multiple extra entries in /boot, could not determine rollback entry" after switch between image variants #2224

Closed as duplicate

Description

@hanthor

bootc status (and --json) errors out after switching between sibling image variants:

error: Status: Getting composefs deployment status:
  Getting composefs deployment status:
  Multiple extra entries in /boot, could not determine rollback entry

Environment

  • bootc 1.15.2
  • Pure composefs backend (no /sysroot/ostree/repo)
  • systemd-boot 260.1, BLS entries on a FAT ESP

What's on disk

3 composefs deployments in /sysroot/state/deploy/:

verity (short) origin mtime
29c668f7… dakota:latest May 27
53dda3db… dakota:latest May 28
bfe67a5b… dakota-nvidia:latest May 30 (booted)

4 BLS entries under /loader/entries/:

file composefs= verity sort-key
bootc_bluefin_dakota-20260528-0.conf 53dda3db… bootc-bluefin-dakota-1
bootc_bluefin_dakota-20260530-1.conf bfe67a5b… (booted) bootc-bluefin-dakota-0
bootc_bootc-20260527-1.conf 29c668f7… bootc-bootc-0
bootc_bootc-20260528-0.conf 53dda3db… (duplicate ref) bootc-bootc-1

Two distinct sort-key groups (bootc-bluefin-dakota-* and bootc-bootc-*); the last entry is also a literal duplicate of the bluefin one. The deployment-status enumerator can't pick a rollback when entries span groups.

Repro

  1. Composefs install.
  2. bootc switch <imageA>:latest → reboot.
  3. bootc switch <imageB>:latest → reboot.
  4. sudo bootc status → error.

Workaround

Delete the orphan group from the ESP:

sudo mount /dev/<esp> /mnt/esp
sudo rm /mnt/esp/loader/entries/bootc_bootc-*.conf
sudo umount /mnt/esp
sudo bootc status   # works

Possible fix directions

  • Reconcile BLS entries against the deployment set during bootc switch (and upgrade) instead of only appending under a new sort-key.
  • In status enumeration, drop BLS entries whose composefs= verity isn't in /sysroot/composefs/images/ and warn, rather than erroring out.
  • De-dup BLS entries that point at the same composefs verity.

Originally reported downstream at projectbluefin/dakota#665.

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