-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error unpacking rpm package filesystem-3.16-5.el9.x86_64 #25036
Comments
please provide more information on how you've created the container. I cannot reproduce locally:
also please use the latest Podman release. 4.9.4 is not supported upstream |
I am creating a Kubernetes pod that contains a Podman image:
And a ConfigMap:
Then from within this container I am trying to build the following image:
By just running podman build . I have updated podman to 5.3.1 but I hit the same error:
The issue seems specific to the podman build command, if I build the image using the following Dockerfile, then run the container and manually update filesystem the issue does not occur:
Building this Dockerfile does present the issue:
The issue is present with both yum and dnf. The issue does not occur when I run:
EDIT
The issue does not occur with rockylinux:9 - as the filesystem package has been updated to 3.16.5 - but can be reproduced with rockylinux:9.0. If you use rockylinux/rockylinux:9 and attempted to reinstall filesystem the issue does occur:
The problem can also be reproduced on Centos9:
|
What the issue seems to be, is that even the podman build seems to be running with USER root, it's not being elevated properly. |
Issue Description
When trying to build a Rocky9 image using Rootless Podman (run on Kubernetes) we are seeing the following error:
`Upgrading : filesystem-3.16-5.el9.x86_64 7/189Error unpacking rpm package filesystem-3.16-5.el9.x86_64
Upgrading : basesystem-11-13.el9.0.1.noarch 8/189
error: unpacking of archive failed on file /dev: cpio: chown failed - Inappropriate ioctl for device
error: filesystem-3.16-5.el9.x86_64: install failed
`
When running as root in a privileged container the filesystem-3.16-5.el9.x86_64 package installs correctly.
Steps to reproduce the issue
Steps to reproduce the issue
runs yum update -y
Describe the results you received
yum update -y
fails are the packagefilesystem-3.16-5.el9.x86_64
fails to install.Based on the error message it looks like the filesystem-3.16-5.el9.x86_64 package is trying to write to
/dev
but is unable toDescribe the results you expected
yum update -y
to complete successfullypodman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: