feat: Enable TPM for manual installations

This commit is contained in:
Kroese 2024-04-18 22:57:37 +02:00 committed by GitHub
parent 4cd3b48d3a
commit 036c2e13bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,10 +250,8 @@ finishInstall() {
rm -f "$STORAGE/windows.old"
fi
if [[ "${BOOT_MODE,,}" == "windows" ]] && [[ "${DETECTED,,}" == "win11"* ]]; then
if [[ "$MANUAL" == [Yy1]* ]] || [[ "$aborted" == [Yy1]* ]]; then
BOOT_MODE="windows_secure"
fi
[[ "${DETECTED,,}" == "win11"* ]] && TPM="Y"
fi
rm -rf "$TMP"