-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
support merged-usr filesystem layout #1393
Comments
Hrmm yeah I think we can adjust for this by creating those symlinks. Not sure what's creating that bin directory though |
that's probably |
offtopic: I noticed that the |
I looked into this today and my current thinking is that this is not going to be fully possible even with I built two new layers:
with:
FWIW, what works is enough to fix my issue reported here but I don't think this is acceptable solution here? |
@loosebazooka I can get this change isolated to one layer and with that it's possible to get Any feedback whether |
I would really have to look into whether all our layer additions don't overwrite this (basically debs and other files don't expand out into |
It's easy to test though, we just add a test for every image to ensure those symlinks still exist. |
that part looks straightforward indeed. I cannot get a clean |
Could this please be supported now that only Debian 12 is available? I'm currently hitting an issue where packages I install via As a workaround, I currently:
|
Describe the bug
To follow the merged-usr approach, I'm installing a statically linked toybox (with sh) to
/install_root/usr/bin
and thenDistroless
/bin
is a directory so I loose the typical shell shebangs (e.g.,/bin/sh
). I've tried to workaround it by creating the/bin
symlink in/install_root
but Buildkit is not happy about it since it cannot deal with/bin/
already being a directory:FWIW, it works with
DOCKER_BUILDKIT=0
but this is deprecated in favor of Buildkit. What also works OK, is:To Reproduce
see the description.
Expected behavior
"merged
/usr
directories scheme, i.e. the/{bin,sbin,lib}/
directories becoming symbolic links to/usr/{bin,sbin,lib}/
. "Console Output
N/A
Additional context
"In February 2021, the Technical Committee has resolved that Debian 'bookworm' should support only the merged-usr root filesystem layout, dropping support for the non-merged-usr layout."
There seems to be strong connection between Debian 12 and the latest distroless so I though this could apply.
The text was updated successfully, but these errors were encountered: