From ab76e2979cd52082ef461bfc5cc6e20660f16e40 Mon Sep 17 00:00:00 2001 From: "Ruan E. Formigoni" Date: Thu, 2 May 2024 18:54:15 -0300 Subject: [PATCH] Make sure upper directories exist for NVIDIA binding --- src/scripts/_boot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/_boot.sh b/src/scripts/_boot.sh index bd51890..4d70676 100755 --- a/src/scripts/_boot.sh +++ b/src/scripts/_boot.sh @@ -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}'"