Skip to content

Conversation

@cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Feb 12, 2025

Two of our tests (and an unknown set of users may) run
bootc image copy-to-storage which happens to invoke
skopeo to target /var/lib/containers/storage. If this
happens to be the first thing to write to that
c/storage instance it triggers a bug around the podman
image network setup.

Signed-off-by: Colin Walters [email protected]

Two of our tests (and an unknown set of users may) run
`bootc image copy-to-storage` which happens to invoke
skopeo to target /var/lib/containers/storage. If this
happens to be the *first* thing to write to that
c/storage instance it triggers a bug around the podman
image network setup.

Signed-off-by: Colin Walters <[email protected]>
This reverts commit 6324840.

Signed-off-by: Colin Walters <[email protected]>
@cgwalters cgwalters force-pushed the copy-to-storage-init-c-storage branch from 4361935 to 37d9b6e Compare February 12, 2025 19:58
@cgwalters cgwalters enabled auto-merge February 13, 2025 13:57
Copy link
Contributor

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

@cgwalters cgwalters merged commit f222c1e into bootc-dev:main Feb 13, 2025
23 checks passed
@cgwalters
Copy link
Collaborator Author

Just circling back to this as I referenced it in another issue; I think the best fix here is actually for podman to ship systemd-tmpfiles config for /var/lib/containers/storage/. Actually there is already

> grep lib/containers/storage /usr/lib/tmpfiles.d/podman.conf
D! /var/lib/containers/storage/tmp 0700 root root

But I'd say we should have also

d /var/lib/containers/storage 0700 - -
f /var/lib/containers/storage/defaultNetworkBackend 0644 - - - netavark

or so.

@cgwalters cgwalters added bug Something isn't working triaged This issue appears to be valid area/skopeo-podman Issues related to skopeo/podman interaction labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skopeo-podman Issues related to skopeo/podman interaction bug Something isn't working triaged This issue appears to be valid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants