From 3d8cf92fd01dd1f96d898148a158379d90bc0ad3 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 9 Feb 2022 17:40:19 +0100 Subject: [PATCH] Changing debug information --- archinstall/lib/luks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py index a5b05134..a9db193f 100644 --- a/archinstall/lib/luks.py +++ b/archinstall/lib/luks.py @@ -108,6 +108,7 @@ class luks2: if bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker and pw_given is False: cryptworker.write(password) pw_given = True + time.sleep(0.25) if cryptworker.exit_code == 256: log(f'{partition} is being used, trying to unmount and crypt-close the device and running one more attempt at encrypting the device: {cryptworker}', level=logging.INFO) @@ -188,6 +189,7 @@ class luks2: if bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker and pw_given is False: cryptworker.write(password) pw_given = True + time.sleep(0.25) if not cryptworker.exit_code == 0: raise DiskError(f"Could not unlock {partition}: {cryptworker}")