Repository navigation
Description
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/bootcexists and is a symlink to../composefs/bootc- a
storage.tmpdirectory is left behind under/sysroot/ostree/bootc - enabling
--experimental-unified-storageduringinstall-to-disktriggers 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 upgradeon composefs may callimage_exists_in_unified_storage()- that calls
Storage::get_ensure_imgstore() - which calls
CStorage::create() CStorage::create()createsostree/bootc/storage.tmpand then runspodman imagesto 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.tmpis left behind after the failure- enabling
--experimental-unified-storageduring install triggers the same error during install, which goes through the sameCStorage::create()path
So the working hypothesis is:
- the bug is in imgstore bootstrap, not symlink creation
- specifically, first-time initialization of bootc-owned containers-storage under composefs is failing inside
CStorage::create() - 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
k8ieone commentedon Jul 7, 2026
Nevermind, the root cause was missing
podmanin my image. Maybebootccould have a nicer error for when it can't findpodman.[-]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`[/+][-]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`[/+]HarshwardhanPatil07 commentedon Aug 17, 2026
/assign
cgwalters commentedon Aug 17, 2026
We don't have Prow setup here, but for now just saying you plan to work on it should be enough!
podstorage: Add early check for missing podman binary