-
Notifications
You must be signed in to change notification settings - Fork 220
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
Consider adding a marker file like /.flatpak-info #1129
Comments
When we tried to look for /run/.containerenv in Nieves' toolboxes, we could not find it, so there may be some unreliability in what podman does. The documentation sounds like the file may depend on the --privileged flag. That might be another reason for having our own marker file that is always there. |
We do already have an empty If it's only a matter of filtering Toolbxes from other Podman containers, then
Currently,
Do we only need a way to identify a Toolbx? Or do we need some more information? We could request Podman to add some more metadata bits to that file. |
That's odd. What about the I have:
A Toolbx containers are always created with |
By the way, the There's also the |
Thanks, I'll ask Christian Hergert to chime in here with what, if anything, would be useful for him. |
I think toolbox is the easier of situations to solve, at least when it comes to sysprof symbol decoding. If we know we can rely on access to the host file-system, symbol resolving can mostly be a "add this prefix to symbol paths to find the real .so/binary on the host". |
@chergert Is other information about the toolbox setup that would be useful to you, that could be included in /run/.toolboxenv ? |
Perhaps the location where the host system is mounted, so that we don't hard code things? But honestly, I'm fine with hard coding. I think I'll know more once we have a prototype to fix symbol resolving though. |
At the moment, it should be fine to hard code Flatpak has a similar location, but I have heard that Regardless, |
Thanks! I think it's probably fine to close this issue now until we have concrete needs for Sysprof/Builder/etc. |
ok, closing this. Thanks for the discussion |
This was suggested to my by Christian Hergert.
It would help him to improve debugging and tracing apps running in toolboxes.
Something like /.toolbox-info would be a nice parallel to what flatpak does. Alternatively, the already existing /run/.containerenv could maybe add enough information to clearly identify a container as a toolbox. E.g., it could show the container-init process.
The text was updated successfully, but these errors were encountered: