nvidia-docker: unbreak the runc symlink

(cherry picked from commit 1e1eb8ba6e)
This commit is contained in:
Someone Serge 2024-01-03 23:53:51 +00:00
parent a6671578ff
commit 2b3eaf55af
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4
2 changed files with 9 additions and 1 deletions

View File

@ -47,6 +47,14 @@ buildGoModule rec {
nativeBuildInputs = [ makeWrapper ];
preConfigure = ''
# Ensure the runc symlink isn't broken:
if ! readlink --quiet --canonicalize-existing "${isolatedContainerRuntimePath}/runc" ; then
echo "${isolatedContainerRuntimePath}/runc: broken symlink" >&2
exit 1
fi
'';
checkFlags =
let
skippedTests = [

View File

@ -24197,7 +24197,7 @@ with pkgs;
nvidia-docker = mkNvidiaContainerPkg {
name = "nvidia-docker";
containerRuntimePath = "${docker}/libexec/docker/runc";
containerRuntimePath = "${docker}/libexec/docker/docker";
configTemplate = ../applications/virtualization/nvidia-docker/config.toml;
additionalPaths = [ (callPackage ../applications/virtualization/nvidia-docker { }) ];
};