From 3333dfabba3cb5edf4ae6b38148357a8f86c90bb Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Thu, 2 Mar 2023 21:20:41 +0100 Subject: [PATCH] Update jlmkr.py --- jlmkr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index 7a6bde0..5e05f39 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -208,7 +208,9 @@ def start_jail(jail_name): "/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-ml.so*", "/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-ptxjitcompiler.so*"]: for file_path in glob.glob(pattern): - if os.path.exists(file_path): + # Don't mount symlinks matched by list of globs above, + # the symlinks need to be created by ldconfig inside the jail + if os.path.exists(file_path) and not os.path.islink(file_path): nvidia_files.add(file_path) # Also make nvidia-smi available inside the path