Skip to content

install: --stateroot is silently ignored with --composefs-backend #2542

Closed

Description

@andrewdunndev

bootc install to-disk --composefs-backend --stateroot myroot exits 0, but the stateroot name isn't used. The installed disk has state/os/default, and no path on the root partition is named myroot. Without --composefs-backend the deployment lands in ostree/deploy/myroot. The install output doesn't mention the stateroot on either backend.

Reproduced on quay.io/fedora/fedora-bootc:44@sha256:5ab8ee5189bb0f3870279723f5343474df002d8d6f46564702b3ad3ba7382d98 (bootc 1.16.13). In the commands, $IMG is an image built FROM that one, adding only config files for other options.

truncate -s 20G c.raw d.raw
podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t \
  -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v $PWD:/out $IMG \
  bootc install to-disk --via-loopback --filesystem ext4 --generic-image --wipe \
  --composefs-backend --stateroot myroot /out/c.raw
# the same again without --composefs-backend, writing d.raw

With each root partition mounted:

# composefs disk
$ ls state/os
default
$ ls ostree/deploy
ls: cannot access 'ostree/deploy': No such file or directory

# ostree disk
$ ls ostree/deploy
myroot

InstallComposefsOpts::validate checks only the bootloader (install.rs L423-L439), the composefs layout uses a fixed state/os/default/var (composefs_consts.rs L11), and nothing under bootc_composefs reads the stateroot.

I'd expect --stateroot to be rejected with --composefs-backend, the way --bootloader=none is, unless composefs is meant to support stateroots.

Related: #2535

Activity

  1. added theissue type on Oct 5, 2026
  2. added a commit that references this issue on Oct 7, 2026
    33b1307
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions