mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 05:12:37 +00:00
gpu: Update nvidia_rootfs.sh
We need to handle KBUILD_SIGN_PIN so that the kbuild can decrypte the signing key Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
493ba63c77
commit
5ab3192c51
@ -14,6 +14,7 @@ readonly SCRIPT_DIR="${script_dir}/nvidia"
|
|||||||
|
|
||||||
# This will control how much output the inird/image will produce
|
# This will control how much output the inird/image will produce
|
||||||
DEBUG=""
|
DEBUG=""
|
||||||
|
KBUILD_SIGN_PIN=${KBUILD_SIGN_PIN:-""}
|
||||||
|
|
||||||
machine_arch=${ARCH}
|
machine_arch=${ARCH}
|
||||||
|
|
||||||
@ -165,7 +166,7 @@ setup_nvidia_gpu_rootfs_stage_one() {
|
|||||||
mount -t proc /proc ./proc
|
mount -t proc /proc ./proc
|
||||||
|
|
||||||
chroot . /bin/bash -c "/nvidia_chroot.sh $(uname -r) ${run_file_name} \
|
chroot . /bin/bash -c "/nvidia_chroot.sh $(uname -r) ${run_file_name} \
|
||||||
${run_fm_file_name} ${machine_arch} ${NVIDIA_GPU_STACK}"
|
${run_fm_file_name} ${machine_arch} ${NVIDIA_GPU_STACK} ${KBUILD_SIGN_PIN}"
|
||||||
|
|
||||||
umount -R ./dev
|
umount -R ./dev
|
||||||
umount ./proc
|
umount ./proc
|
||||||
|
Loading…
Reference in New Issue
Block a user