Adding debug

This commit is contained in:
Anton Hvornum 2022-02-09 14:56:55 +01:00
parent e4d991b860
commit 50cc9f2dfe
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ class luks2:
while cryptworker.is_alive():
if bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker and pw_given is False:
cryptworker.write(password)
with open('debug.txt', 'a') as silent_output:
silent_output.write(f"We did write the output to {cryptworker}")
pw_given = True
if cryptworker.exit_code == 256: