mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-27 12:08:58 +00:00
Merge pull request #11407 from Champ-Goblem/fix/nvidia-rootfs-only-copy-opa-when-agent-policy-enabled
nvidia-rootfs: only copy `kata-opa` if `AGENT_POLICY` is enabled
This commit is contained in:
commit
c8fcda0d73
@ -15,6 +15,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:-}
|
KBUILD_SIGN_PIN=${KBUILD_SIGN_PIN:-}
|
||||||
|
AGENT_POLICY="${AGENT_POLICY:-no}"
|
||||||
|
|
||||||
NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:?NVIDIA_GPU_STACK must be set}
|
NVIDIA_GPU_STACK=${NVIDIA_GPU_STACK:?NVIDIA_GPU_STACK must be set}
|
||||||
VARIANT=${VARIANT:?VARIANT must be set}
|
VARIANT=${VARIANT:?VARIANT must be set}
|
||||||
@ -281,7 +282,9 @@ chisseled_init() {
|
|||||||
ln -sf /bin/NVRC sbin/init
|
ln -sf /bin/NVRC sbin/init
|
||||||
|
|
||||||
cp -a "${stage_one}"/usr/bin/kata-agent usr/bin/.
|
cp -a "${stage_one}"/usr/bin/kata-agent usr/bin/.
|
||||||
cp -a "${stage_one}"/etc/kata-opa etc/.
|
if [[ "${AGENT_POLICY}" == "yes" ]]; then
|
||||||
|
cp -a "${stage_one}"/etc/kata-opa etc/.
|
||||||
|
fi
|
||||||
cp -a "${stage_one}"/etc/resolv.conf etc/.
|
cp -a "${stage_one}"/etc/resolv.conf etc/.
|
||||||
cp -a "${stage_one}"/supported-gpu.devids .
|
cp -a "${stage_one}"/supported-gpu.devids .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user