diff --git a/tools/osbuilder/rootfs-builder/nvidia/nvidia_rootfs.sh b/tools/osbuilder/rootfs-builder/nvidia/nvidia_rootfs.sh index 224d59a5d0..e0b06736a6 100644 --- a/tools/osbuilder/rootfs-builder/nvidia/nvidia_rootfs.sh +++ b/tools/osbuilder/rootfs-builder/nvidia/nvidia_rootfs.sh @@ -253,15 +253,15 @@ chisseled_init() { tar xvf "${BUILD_DIR}"/kata-static-busybox.tar.xz -C . mkdir -p dev etc proc run/cdi sys tmp usr var lib/modules lib/firmware \ - usr/share/nvidia lib/x86_64-linux-gnu lib64 + usr/share/nvidia lib/x86_64-linux-gnu lib64 usr/bin ln -sf ../run var/run tar xvf "${BUILD_DIR}"/kata-static-nvidia-nvrc.tar.zst -C . - ln -sf /bin/NVRC init + ln -sf /bin/NVRC sbin/init - cp -a "${stage_one}"/sbin/init sbin/. + cp -a "${stage_one}"/usr/bin/kata-agent usr/bin/. cp -a "${stage_one}"/etc/kata-opa etc/. cp -a "${stage_one}"/etc/resolv.conf etc/. cp -a "${stage_one}"/supported-gpu.devids . diff --git a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh index 73b3b76520..ece0911c31 100755 --- a/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh +++ b/tools/packaging/kata-deploy/local-build/kata-deploy-binaries.sh @@ -494,7 +494,6 @@ install_initrd_confidential() { # Install NVIDIA GPU image install_image_nvidia_gpu() { export AGENT_POLICY="yes" - export AGENT_INIT="no" export EXTRA_PKGS="apt" NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:-"latest,compute,dcgm"} install_image "nvidia-gpu" @@ -503,7 +502,6 @@ install_image_nvidia_gpu() { # Install NVIDIA GPU initrd install_initrd_nvidia_gpu() { export AGENT_POLICY="yes" - export AGENT_INIT="no" export EXTRA_PKGS="apt" NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:-"latest,compute,dcgm"} install_initrd "nvidia-gpu" @@ -512,7 +510,6 @@ install_initrd_nvidia_gpu() { # Instal NVIDIA GPU confidential image install_image_nvidia_gpu_confidential() { export AGENT_POLICY="yes" - export AGENT_INIT="no" export EXTRA_PKGS="apt" # TODO: export MEASURED_ROOTFS=yes NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:-"latest,compute"} @@ -522,7 +519,6 @@ install_image_nvidia_gpu_confidential() { # Install NVIDIA GPU confidential initrd install_initrd_nvidia_gpu_confidential() { export AGENT_POLICY="yes" - export AGENT_INIT="no" export EXTRA_PKGS="apt" # TODO: export MEASURED_ROOTFS=yes NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:-"latest,compute"}