Skip to content

reinstall: Use containers-storage transport - #1255

Merged
cgwalters merged 1 commit into
bootc-dev:mainfrom
ckyrouac:reinstall-target-transport
Apr 8, 2025
Merged

cgwalters merged 1 commit into
bootc-dev:mainfrom
ckyrouac:reinstall-target-transport

Conversation

@ckyrouac

@ckyrouac ckyrouac commented Apr 8, 2025

Copy link
Copy Markdown
Collaborator

The image is always pulled into containers-storage first, so let's use it here to avoid requiring registry keys to be baked into the image.

fixes #1205

@ckyrouac
ckyrouac requested a review from Copilot April 8, 2025 14:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@ckyrouac
ckyrouac requested a review from cgwalters April 8, 2025 14:49
Comment thread system-reinstall-bootc/src/podman.rs Outdated
Comment on lines +44 to +45
// The image is always pulled into containers-storage first, so let's use it here to avoid
// requiring registry keys to be baked into the image.

@cgwalters cgwalters Apr 8, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We want --skip-fetch-check here to avoid that.

And honestly I'm OK to just drop that check by default (i.e. to change install.rs and make --skip-fetch-check the effective default; we could add a new option --run-fetch-check I guess but I doubt anyone really needs it)

Comment thread system-reinstall-bootc/src/podman.rs Outdated
"--acknowledge-destructive",
// The image is always pulled into containers-storage first, so let's use it here to avoid
// requiring registry keys to be baked into the image.
"--target-transport containers-storage",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Because this fundamentally changes what it does. Previously we'd look for updates from the registry, now we won't - to do an upgrade the admin would need to podman pull subsequent images which would be a huge change.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ah, right, I forgot that flag will affect upgrades. I switched to use skip-fetch-check for now and can follow up to make it the default.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Of course, really this is all extremely confusing and #20 would help a whole lot in all of this

The image is always pulled first, so let's avoid requiring the credentials to be baked
in the image for this check.

fixes bootc-dev#1205

Signed-off-by: ckyrouac <[email protected]>
@ckyrouac
ckyrouac force-pushed the reinstall-target-transport branch from 8e4606c to a144037 Compare April 8, 2025 15:04
@github-actions github-actions Bot added the area/system-reinstall-bootc Issues related to system-reinstall-botoc label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/system-reinstall-bootc Issues related to system-reinstall-botoc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add one arg like --target-transport containers-storage in system-reinstall-bootc commnad

3 participants