Skip to content

to-disk: Fix containers-storage prefix duplication#253

Merged
Johan-Liebert1 merged 1 commit intomainfrom
bcvk-241
Apr 29, 2026
Merged

to-disk: Fix containers-storage prefix duplication#253
Johan-Liebert1 merged 1 commit intomainfrom
bcvk-241

Conversation

@gursewak1997
Copy link
Copy Markdown
Collaborator

When bcvk to-disk was called with a containers-storage: prefixed image reference, it would duplicate the prefix resulting in 'containers-storage:containers-storage:...' which caused the bootc install to fail with 'invalid reference format'.
Strip the containers-storage: prefix if present before adding it back, ensuring both prefixed and unprefixed inputs normalize to the same format.

Fixes: #241

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates generate_bootc_install_command to strip the containers-storage: prefix from the source image name, preventing duplication in the generated command and retry paths. The review feedback suggests that this normalization should be handled more consistently across the entire ToDiskOpts struct, as other methods still use the un-normalized image name which could lead to failures in Podman-related operations.

Comment thread crates/kit/src/to_disk.rs Outdated
When bcvk to-disk was called with a containers-storage: prefixed
image reference, it would duplicate the prefix resulting in
'containers-storage:containers-storage:...' which caused the
bootc install to fail with 'invalid reference format'.

Strip the containers-storage: prefix if present before adding it
back, ensuring both prefixed and unprefixed inputs normalize to
the same format.

Signed-off-by: gursewak1997 <gursmangat@gmail.com>
@Johan-Liebert1 Johan-Liebert1 merged commit bd4b055 into main Apr 29, 2026
17 checks passed
@gursewak1997 gursewak1997 deleted the bcvk-241 branch April 29, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bcvk to-disk fails on containers-storage: prefix

2 participants