Skip to content

Commit

Permalink
Faster nvidia symlinks on debian
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanformigoni committed Jun 1, 2024
1 parent 22afb55 commit bf0a4bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/_boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,8 @@ function _exec()
if [[ -d "$src" ]]; then mkdir -pv "$src"; continue; fi
# Symlink otherwise
mkdir -pv "$(dirname "$linkname")" || true
# It is significantly faster to erase the link prior to executing 'ln' on debian
rm -f "$linkname"
ln -sfnTv "$FIM_DIR_RUNTIME_HOST/$(readlink -f "$src")" "$linkname" || true
_msg "NVIDIA symlink '$linkname' -> '$FIM_DIR_RUNTIME_HOST/$(readlink -f "$src")'"
done &>"$FIM_STREAM" || true
Expand Down

0 comments on commit bf0a4bd

Please sign in to comment.