-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
override replace
on the systemd rpm does not replace /usr/bin/systemctl
#4938
Comments
This seems likely to be caused by the wrapping of Lines 143 to 151 in e0cf3f7
rpm-ostree override replace of the shadow-utils package.
|
@cgwalters, while I have your attention 😄, is there a reasonable workaround for this? I'd love to use |
We are backing away from cliwrap. As far as |
I will note that I don't actually think this bug has to do with cliwrap as rpm-ostree doesn't seem to replace Note that I do use cliwrap to support the kernel replacement Duly noted about the |
Describe the bug
When using
rpm-ostree override replace
to upgrade packages in a container overlay, upgrading systemd does not replace the/usr/bin/systemctl
binary.Reproduction steps
podman run -it -v ~/rpms:/tmp/rpms:ro,z "$BASE_IMAGE:$BASE_TAG" /bin/bash --login
rpm-ostree override replace /tmp/rpms/systemd-255.5-1.fc41.x86_64.rpm
(upgrading from systemd-255.4)rpm -V --nomtime systemd
Expected behavior
/usr/bin/systemctl should match the version of the replaced RPM. The RPM should verify as expected below.
Actual behavior
/usr/bin/systemctl is the version from the base image. If libsystemd was also upgraded then /usr/bin/systemctl will fail to start due to missing shared libraries.
System details
Additional information
This can be worked around by rebuilding the base image from a treefile. My base image uses Fedora Rawhide (
quay.io/fedora/fedora-kinoite
). In order to reduce the number of layers changed from day-to-day I useoverride replace
in a container overlay to apply package updates using this script and Containerfile.I rebase the entire container at least once a week to reduce but not eliminate hysteresis.
cliwrap
is enabled.The text was updated successfully, but these errors were encountered: