Skip to content

Commit

Permalink
Make sure upper directories exist for NVIDIA binding
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanformigoni committed May 2, 2024
1 parent 6a6f46f commit ab76e29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/_boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,7 @@ function _exec()

### Bind
for i in "${nvidia_binds[@]}"; do
mkdir -pv "$(dirname "${dir_usr}/${i#/usr}")" &>"$FIM_STREAM" || true
_cmd_bwrap+=("--bind-try \"$i\" \"${dir_usr}/${i#/usr}\"")
_cmd_proot+=("-b \"$i\"")
_msg "NVIDIA bind '$i' -> '${dir_usr}/${i#/usr}'"
Expand Down

0 comments on commit ab76e29

Please sign in to comment.