From 1de5425015bf2531f695327cde38baaa8403a80e Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Mon, 27 Feb 2023 18:08:05 +0100 Subject: [PATCH 1/3] Update jlmkr.py --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index 296647e..aead53e 100644 --- a/jlmkr.py +++ b/jlmkr.py @@ -154,7 +154,7 @@ def start_jail(jail_name): systemd_nspawn_additional_args.append('--bind=/dev/dri') # Detect nvidia GPU - if os.path.exists('/dev/nvidia'): + if os.path.exists('/dev/nvidia0'): nvidia_driver_files = [] try: From 4b1d881a955e08c3da5c746950bd2a35c995769f Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Mon, 27 Feb 2023 21:12:39 +0100 Subject: [PATCH 2/3] Update jlmkr.py --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index aead53e..f1ad4cc 100644 --- a/jlmkr.py +++ b/jlmkr.py @@ -171,7 +171,7 @@ def start_jail(jail_name): f"--bind={file_path}") else: systemd_nspawn_additional_args.append( - f"--bind-ro=={file_path}") + f"--bind-ro={file_path}") cmd = ['systemd-run', *shlex.split(config.get('systemd_run_default_args', '')), From 1b501bd32ac4f1bfb894a170a47ab47070a3d302 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 28 Feb 2023 07:50:15 +0100 Subject: [PATCH 3/3] Update jlmkr.py --- jlmkr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index f1ad4cc..4bbd66b 100644 --- a/jlmkr.py +++ b/jlmkr.py @@ -166,7 +166,10 @@ def start_jail(jail_name): Unable to mount the nvidia driver files.""")) for file_path in nvidia_driver_files: - if file_path.startswith('/dev/'): + if not file_path: + # Skip empty strings + continue + elif file_path.startswith('/dev/'): systemd_nspawn_additional_args.append( f"--bind={file_path}") else: