fixup! packaging: add built-time support for NVAT

This commit is contained in:
Fabiano Fidêncio
2026-06-15 15:16:36 +02:00
parent bcb4c601df
commit d104ef4ac3
2 changed files with 11 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ RUN apt-get update && \
curl \
binutils \
clang \
cryptsetup-bin \
g++ \
gcc \
git \

View File

@@ -42,6 +42,16 @@ build_coco_guest_components_from_source() {
install -D -m0644 "confidential-data-hub/hub/src/image/ocicrypt_config.json" "${DESTDIR}/etc/ocicrypt_config.json"
# CDH's secure_mount LUKS-formats encrypted scratch volumes by exec'ing
# cryptsetup. Encrypted storage is a CoCo-only feature, so cryptsetup ships
# in this addon rather than the guest rootfs (the base-nvidia image carries
# only veritysetup plus the plain mke2fs/mkfs.ext4/dd storage tooling).
# cryptsetup's shared-library closure is identical to veritysetup's, which
# the base already ships unconditionally, so bundle just the binary; the
# coco-addon manifest puts ${addon_root}/usr/sbin on CDH's PATH so the
# runtime lookup resolves (see kata-deploy-binaries.sh).
install -D -m0755 /usr/sbin/cryptsetup "${DESTDIR}/usr/sbin/cryptsetup"
if [[ -n "${NV_ATTESTER:-}" ]]; then
echo "build attestation-agent-nv with nvidia-attester support"