File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ nv-ctr-run-with-dtk() {
2525 /usr/local/bin/nvidia-driver \
2626 /usr/local/bin/common.sh \
2727 /usr/local/bin/extract-vmlinux \
28- /usr/local/bin/vgpu-util \
2928 /usr/bin/unzboot \
3029 /drivers \
3130 " $DRIVER_TOOLKIT_SHARED_DIR /"
3231
32+ if [[ -f " /usr/local/bin/vgpu-util" ]]; then
33+ cp /usr/local/bin/vgpu-util " $DRIVER_TOOLKIT_SHARED_DIR /"
34+ fi
35+
3336 env | sed ' s/=/="/' | sed ' s/$/"/' > " $DRIVER_TOOLKIT_SHARED_DIR /env"
3437
3538 touch " $DRIVER_TOOLKIT_SHARED_DIR /dir_prepared"
@@ -136,10 +139,13 @@ dtk-build-driver() {
136139 " $DRIVER_TOOLKIT_SHARED_DIR /nvidia-driver" \
137140 " $DRIVER_TOOLKIT_SHARED_DIR /common.sh" \
138141 " $DRIVER_TOOLKIT_SHARED_DIR /extract-vmlinux" \
139- " $DRIVER_TOOLKIT_SHARED_DIR /vgpu-util" \
140142 " $DRIVER_TOOLKIT_SHARED_DIR /unzboot" \
141143 " ${DRIVER_TOOLKIT_SHARED_DIR} /bin"
142144
145+ if [[ -f " $DRIVER_TOOLKIT_SHARED_DIR /vgpu-util" ]]; then
146+ cp -v " $DRIVER_TOOLKIT_SHARED_DIR /vgpu-util" " $DRIVER_TOOLKIT_SHARED_DIR /bin"
147+ fi
148+
143149 ln -s $( which true) ${DRIVER_TOOLKIT_SHARED_DIR} /bin/dnf --force
144150
145151 export PATH=" ${DRIVER_TOOLKIT_SHARED_DIR} /bin:$PATH " ;
You can’t perform that action at this time.
0 commit comments