@@ -21,6 +21,7 @@ usage()
echo " QEMU_PATH use a locally built QEMU version"
echo " SWUPDATE_BOOT boot swupdate image"
echo " SECURE_BOOT start a secure boot environment"
+ echo " TPM2_ENCRYPTION starts swtpm to encrypt the disk partitions"
echo " DISTRO_RELEASE select a specific Debian release"
echo " TARGET_IMAGE select a specific image type"
exit 1
@@ -35,6 +36,10 @@ if grep -s -q "IMAGE_DATA_ENCRYPTION: true" .config.yaml; then
TPM2_ENCRYPTION="true"
fi
+if grep -s -q "IMAGE_ROOTFS_ENCRYPTION: true" .config.yaml; then
+ TPM2_ENCRYPTION="true"
+fi
+
if [ -n "${QEMU_PATH}" ]; then
QEMU_PATH="${QEMU_PATH}/"
fi
@@ -187,7 +192,7 @@ QEMU_COMMON_OPTIONS=" \
${QEMU_EXTRA_ARGS} \
"
-if [ -n "${SECURE_BOOT}${SWUPDATE_BOOT}" ]; then
+if [ -n "${SECURE_BOOT}${SWUPDATE_BOOT}${TPM2_ENCRYPTION}" ]; then
case "${arch}" in
x86|x86_64|amd64)
if [ -n "${SECURE_BOOT}" ]; then