Skip to content
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

dnf creates un-deleteable files in image with --installroot #1765

Closed
reidpr opened this issue Nov 2, 2023 · 1 comment · Fixed by #1803
Closed

dnf creates un-deleteable files in image with --installroot #1765

reidpr opened this issue Nov 2, 2023 · 1 comment · Fixed by #1803
Assignees
Milestone

Comments

@reidpr
Copy link
Collaborator

reidpr commented Nov 2, 2023

e.g.:

$ cat /tmp/Dockerfile
FROM redhat/ubi8:latest
RUN dnf install --assumeyes --installroot=/foo filesystem
$ ch-image reset
$ ch-image build /tmp
[...]
grown in 2 instructions: tmp
$ ch-image reset
error: can’t recursively delete directory reidpr.ch: var: Permission denied
trace: filesystem.py:539:rmtree, filesystem.py:833:reset, misc.py:203:reset, ch-image:323:main
$ rm -Rf $CH_IMAGE_STORAGE
rm: cannot remove '/scratch/reidpr.ch/img/tmp/foo/var': Permission denied
[... lots more errors ...]
$ ls -ld $CH_IMAGE_STORAGE/img/tmp/foo
dr-xr-xr-x 1 reidpr reidpr 132 Nov  2 15:41 /scratch/reidpr.ch/img/tmp/foo

foo/ is not writeable by me, so it can’t be deleted.

@reidpr reidpr added this to the 0.36 milestone Nov 2, 2023
@reidpr reidpr self-assigned this Nov 2, 2023
@reidpr
Copy link
Collaborator Author

reidpr commented Nov 3, 2023

Underlying reason is the same as #1767, but this corrupts the storage directory so seems more important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant