Skip to content

bootc 1.16.0+ fails with an unclear error message when missing podman #2284

Closed

Description

@k8ieone

Originally I thought I was hitting a bug in bootc but it turns out I was just missing a podman binary in my image. I'm keeping the original issue content for archival and searchability.


Tested versions: 1.16.0-1.16.3
Install command: install to-disk --composefs-backend --via-loopback /data/bootable.img --filesystem "${filesystem}" --wipe --bootloader systemd

Running bootc switch or bootc upgrade on the booted system throws error: Upgrading composefs: Creating imgstore: Initializing images: No such file or directory (os error 2).

Other things I found

  • /sysroot/ostree/bootc exists and is a symlink to ../composefs/bootc
  • a storage.tmp directory is left behind under /sysroot/ostree/bootc
  • enabling --experimental-unified-storage during install-to-disk triggers the same error

If needed I can create and link a full repository where this can be easily reproduced, my source repo is private.


I tried poking around with Copilot to see if we can track down why this happens, here's what we found:

From source inspection, the symlink itself does not appear to be the problem. On composefs installs, bootc expects ostree/bootc -> ../composefs/bootc, and in this case /sysroot/ostree/bootc already exists as that symlink.

The failure appears to happen later, during first-time initialization of bootc-owned containers-storage (imgstore).

Relevant code path:

  • bootc switch / bootc upgrade on composefs may call image_exists_in_unified_storage()
  • that calls Storage::get_ensure_imgstore()
  • which calls CStorage::create()
  • CStorage::create() creates ostree/bootc/storage.tmp and then runs podman images to bootstrap the storage
  • the error string matches that exact step: Creating imgstore: Initializing images: No such file or directory

The strongest clue is that:

  • storage.tmp is left behind after the failure
  • enabling --experimental-unified-storage during install triggers the same error during install, which goes through the same CStorage::create() path

So the working hypothesis is:

  1. the bug is in imgstore bootstrap, not symlink creation
  2. specifically, first-time initialization of bootc-owned containers-storage under composefs is failing inside CStorage::create()
  3. there may also be a secondary issue where unified-storage auto-detection eagerly initializes imgstore on non-unified composefs installs, instead of checking for its existence first

Relevant areas:

  • crates/lib/src/podstorage.rs (CStorage::create, new_podman_cmd_in)
  • crates/lib/src/store/mod.rs (get_ensure_imgstore)
  • crates/lib/src/deploy.rs (image_exists_in_unified_storage)
  • crates/lib/src/bootc_composefs/repo.rs (unified install path)

This is still a hypothesis from code reading + repro behavior, but it seems more likely than the original missing-symlink theory.

Activity

  1. k8ieone commented on Jul 7, 2026

    @k8ieone
    Author

    Nevermind, the root cause was missing podman in my image. Maybe bootc could have a nicer error for when it can't find podman.

  2. changed the title [-]Composefs installations unable to `upgrade` or `switch` on bootc 1.16.0+[/-] [+]bootc 1.16.0+ fails with an ugly and unclear error message when missing `podman`[/+] on Jul 7, 2026
  3. changed the title [-]bootc 1.16.0+ fails with an ugly and unclear error message when missing `podman`[/-] [+]bootc 1.16.0+ fails with an unclear error message when missing `podman`[/+] on Jul 7, 2026
  4. added
    triaged
    on Jul 8, 2026
  5. HarshwardhanPatil07 commented on Aug 17, 2026

    @HarshwardhanPatil07
    Member

    /assign

  6. cgwalters commented on Aug 17, 2026

    @cgwalters
    Member

    /assign

    We don't have Prow setup here, but for now just saying you plan to work on it should be enough!

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

    triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions