Skip to content

vendor container-libs with storage.conf rework#28194

Merged
mtrmac merged 6 commits intocontainers:mainfrom
Luap99:storage-conf
Mar 20, 2026
Merged

vendor container-libs with storage.conf rework#28194
mtrmac merged 6 commits intocontainers:mainfrom
Luap99:storage-conf

Conversation

@Luap99
Copy link
Copy Markdown
Member

@Luap99 Luap99 commented Mar 4, 2026

see containers/container-libs#680 and commit here

Does this PR introduce a user-facing change?

storage.conf parsing has been rewritten to support drop in files and more, see (TODO link future blog)

@github-actions github-actions bot added machine kind/api-change Change to remote API; merits scrutiny labels Mar 4, 2026
@packit-as-a-service
Copy link
Copy Markdown

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@Luap99 Luap99 added the No New Tests Allow PR to proceed without adding regression tests label Mar 5, 2026
@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Mar 6, 2026

/packit test github.com/containers/container-libs#680

@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Mar 6, 2026

/packit test containers/container-libs#680

@Luap99 Luap99 force-pushed the storage-conf branch 3 times, most recently from 54c6a67 to c3fcd8e Compare March 10, 2026 16:36
@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Mar 10, 2026

/packit test containers/container-libs#680

Luap99 added 6 commits March 19, 2026 21:48
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
It hard codes a graphroot which is not correct for rootless users based
on our new config file parsing.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
We no longer generate a warning for an empty driver in storage.conf so
remove that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
We no longer generate a warning for an empty driver in storage.conf so
remove that.

Also update the test to use CONTAINERS_STORAGE_CONF_OVERRIDE instead to
just add a single setting there.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Rootless users cannot use composefs so we need to set it up in the
storage.rootful.conf.d/ directory so only the rootful podman reads this
file.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
It is not really needed as the storage options are overriden via the cli
anyway and the older podman does not like that the new file has explicit
runroot set.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@Luap99 Luap99 changed the title DNM: test storage.conf rewrite vendor container-libs with storage.conf rework Mar 19, 2026
@Luap99 Luap99 marked this pull request as ready for review March 19, 2026 20:56
@Luap99 Luap99 removed the bloat_approved Approve a PR in which binary file size grows by over 50k label Mar 19, 2026
@Luap99
Copy link
Copy Markdown
Member Author

Luap99 commented Mar 19, 2026

@containers/podman-maintainers PTAL

@mheon
Copy link
Copy Markdown
Member

mheon commented Mar 19, 2026

LGTM

Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM


# Remove packaged storage.conf as it hard codes a graphroot which
# is not correct for rootless users based on our new config file parsing.
rm -f /usr/share/containers/storage.conf
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hum, we are creating /etc/containers/storage.conf below. How can the file in /usr still be loaded, with the new semantics?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah I guess I can drop this

@mtrmac mtrmac merged commit 85d9999 into containers:main Mar 20, 2026
85 of 90 checks passed
@Luap99 Luap99 deleted the storage-conf branch March 23, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/api-change Change to remote API; merits scrutiny machine No New Tests Allow PR to proceed without adding regression tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants