Merge branch 'Jip-Hop:main' into main

This commit is contained in:
Basti Qdoba 2023-02-28 19:11:27 +01:00 committed by GitHub
commit d618f29d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,10 @@ def start_jail(jail_name):
Unable to mount the nvidia driver files.""")) Unable to mount the nvidia driver files."""))
for file_path in 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( systemd_nspawn_additional_args.append(
f"--bind={file_path}") f"--bind={file_path}")
else: else: