From 6c1e153a6ffcba6d7d07cb671a1e2f2075fe7f30 Mon Sep 17 00:00:00 2001 From: Matt Wang Date: Mon, 21 Nov 2022 15:41:20 +0800 Subject: [PATCH] docs: update doc "NVIDIA GPU passthrough" We should make sure the hook shell `nvidia-container-toolkit.sh` is executable. Fixes: #5594 Signed-off-by: Matt Wang --- docs/use-cases/NVIDIA-GPU-passthrough-and-Kata.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/use-cases/NVIDIA-GPU-passthrough-and-Kata.md b/docs/use-cases/NVIDIA-GPU-passthrough-and-Kata.md index 18a75bde77..e1b5af76e3 100644 --- a/docs/use-cases/NVIDIA-GPU-passthrough-and-Kata.md +++ b/docs/use-cases/NVIDIA-GPU-passthrough-and-Kata.md @@ -545,6 +545,12 @@ Create the hook execution file for Kata: /usr/bin/nvidia-container-toolkit -debug $@ ``` +Make sure the hook shell is executable: + +```sh +chmod +x $ROOTFS_DIR/usr/share/oci/hooks/prestart/nvidia-container-toolkit.sh +``` + As the last step one can do some cleanup of files or package caches. Build the rootfs and configure it for use with Kata according to the development guide.