summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2025-08-19 16:25:34 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2025-09-23 21:25:26 +0200
commit5865c42e37262da5a6ba67ae0785cb1cc4a2b15b (patch)
tree192cc00947a04f2485f58a8578c7bf177ef3cd97 /src/helpers
parent0f1430ff44c91b4e1dd152f0cf960a62dcb4d032 (diff)
downloadvyos-1x-5865c42e37262da5a6ba67ae0785cb1cc4a2b15b.tar.gz
vyos-1x-5865c42e37262da5a6ba67ae0785cb1cc4a2b15b.zip
tpm: T7726: Prompt user before clearing TPM key
Diffstat (limited to 'src/helpers')
-rwxr-xr-xsrc/helpers/vyos-config-encrypt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/vyos-config-encrypt.py b/src/helpers/vyos-config-encrypt.py
index 64e39f700..3fa651abf 100755
--- a/src/helpers/vyos-config-encrypt.py
+++ b/src/helpers/vyos-config-encrypt.py
@@ -197,7 +197,8 @@ def decrypt_config(key):
os.unlink(image_path)
try:
- clear_tpm_key()
+ if ask_yes_no('Do you want to clear the TPM? This will cause issues if other system images use the key'):
+ clear_tpm_key()
except:
pass