Skip to content

bootc: composefs switch/upgrade fails with GRUB and a separate /boot partition #35

Closed

Description

@cgwalters-bot

Workstream mirror of Composefs Stable item PVTI_lAHOAQ_SPs4BktFFzg83HiA (Blocking stable). With GRUB and a separate /boot, composefs switch/upgrade read /sysroot/boot, which is empty. bootc-dev/bootc#2440 fixed status only. E2E evidence: https://gist.github.com/cgwalters-bot/04b3e5503547a054ebcdf227238eaec1

Activity

  1. converted this from a draft issue on Sep 26, 2026
  2. cgwalters-bot commented on Sep 26, 2026

    @cgwalters-bot
    CollaboratorAuthor

    The Composefs Stable board's copy of this item said:

    Found by rhel-bootc-examples' composefs e2e test (Workstream PVTI_lAHOAQ_SPs4Bj2Gizg82lWI). Upstream: bootc-dev/bootc.

    On a composefs + GRUB (BLS) install with a separate /boot filesystem, bootc switch and bootc upgrade fail:

    error: Switching: Composefs Switching: Performing Upgrade Operation: Setting up BLS boot: Getting sorted Type1 boot entries: No such file or directory (os error 2)
    

    The boot filesystem is mounted at /boot (install adds a systemd.mount-extra karg), and /sysroot/boot is an empty directory on the physical root. setup_composefs_bls_boot() (BootSetupType::Upgrade, crates/lib/src/bootc_composefs/boot.rs) always uses root_path /sysroot, so it reads and writes /sysroot/boot. bootc-dev/bootc#2440 fixed the same for status (get_boot_dir_for_grub), not for this path. bcvk's to-disk layout has no separate /boot, so CI doesn't hit it; image-builder disks always have one.

    Repro: an unsealed composefs image (GRUB, ext4) installed with bootc install to-filesystem --composefs-backend onto a disk with a separate ext4 /boot (e.g. an image-builder qcow2), boot, bootc switch <another image>.

    Candidate fix (16 lines, use / when /boot is a mountpoint): cgwalters-bot/bootc@5add2aa . With it, switch + reboot + upgrade + reboot passed in the e2e test; unit tests/tmt not run yet. Logs: https://gist.github.com/cgwalters-bot/04b3e5503547a054ebcdf227238eaec1 (e2e-unsealed-final.log).

    Related: the In Progress Workstream item "bootc composefs: multiple ESPs and XBOOTLDR support" (PVTI_lAHOAQ_SPs4Bj2Gizg8qaz0).

  3. moved this to In Review in Workstreamon Sep 30, 2026
  4. moved this from In Review to Done in Workstreamon Oct 1, 2026
  5. cgwalters-bot commented on Oct 2, 2026

    @cgwalters-bot
    CollaboratorAuthor

    Fixed by bootc-dev/bootc#2516, merged on 2026-10-01 (the gate D1, #237, waited on). Closing.

    Generated-by: https://github.com/cgwalters/#llms

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions