From 036c2e13bd55200f4cded22ff8a1fcb7385bda0a Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 18 Apr 2024 22:57:37 +0200 Subject: [PATCH] feat: Enable TPM for manual installations --- src/install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index 9827ccb..c0cc3a5 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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 + if [[ "$MANUAL" == [Yy1]* ]] || [[ "$aborted" == [Yy1]* ]]; then + [[ "${DETECTED,,}" == "win11"* ]] && TPM="Y" fi rm -rf "$TMP"