Skip to content

Commit 9b08d47

Browse files
committed
tpm: T7726: Prompt user before clearing TPM key
1 parent 0b88ade commit 9b08d47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers/vyos-config-encrypt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ def decrypt_config(key):
196196
os.unlink(image_path)
197197

198198
try:
199-
clear_tpm_key()
199+
if ask_yes_no('Do you want to clear the TPM? This will cause issues if other system images use the key'):
200+
clear_tpm_key()
200201
except:
201202
pass
202203

0 commit comments

Comments
 (0)