-
Notifications
You must be signed in to change notification settings - Fork 78
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
Hardlinked /etc issue (0.1.14) #856
Comments
It resembles: |
#666 should have fixed that and that's in 0.1.14 |
Looks like I have that though... |
The same Dockerfile works when built with podman. so something different between the way kaniko lays out the image then podman does. Some way I can compare the two? |
One of the few differences (besides timestamps) I've noticed so far is this:
Not sure if that matters or not or is even related. |
Oh. I think I may have found a difference... I didn't watch the warning closely enough. Its this:
kaniko has /'s on the head of the hardlinks. podman does not. |
Ok. That was indeed the problem. So...
|
Definitely, that's just an oversight in the original change in ostreedev/ostree-rs-ext#408 That said, ostreedev/ostree-rs-ext#674 would also obsolete all that logic. |
I proposed the fix to the Kaniko repo. Tested and working. If anyone else hits this problem before its fixed here, thats the workaround. :) |
Thanks @cgwalters! :) |
See containers/bootc#856 Basically we need to handle absolute paths here too. This currently fails tests as we need to normalize in multiple places.
Thanks for proposing a change to Kaniko, but we should also fix it in bootc. I started this in ostreedev/ostree-rs-ext#680 |
See containers/bootc#856 Basically we need to handle absolute paths here too. Signed-off-by: Colin Walters <[email protected]>
See containers/bootc#856 Basically we need to handle absolute paths here too. Signed-off-by: Colin Walters <[email protected]>
This should be fixed by #867 which rolls in ostreedev/ostree-rs-ext#680 Please test it out if you have a chance and confirm. There's C9S builds here for example that install on top of alma9.4 for me: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/bootc/build/8210416/ |
If I use Kaniko to customize an image with the following Dockerfile:
It builds fine, but bootc wont update from it:
Interestingly, it only seems to happen with dnf installs. With copying files in, or doing other commands, the images deploy fine.
The text was updated successfully, but these errors were encountered: