fix: let devenv
-created OCI images be compatible with libnvidia-container
#873
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently OCI images created by
devenv
contain a symlink/lib -> /nix/store/lf0wpjrj8yx4gsmw2s3xfl58ixmqk8qa-bash-5.2-p15/lib
. The symlink conflicts withlibnvidia-container
becauselibnvidia-container
tries to create a file/lib/firmware/nvidia/525.85.12/gsp_ad10x.bin
while it specifiesO_NOFOLLOW
according to https://github.com/NVIDIA/libnvidia-container/blob/1eb5a30a6ad0415550a9df632ac8832bf7e2bbba/src/utils.c#L523As a result,
libnvidia-container
will produce the following error when starting a container built fromdevenv
This PR makes
/lib
a regular directory, and makes files under/lib
symlinks, so that the OCI images created bydevenv
would be compatible withlibnvidia-container
.