This should correct #135. I'll have to investigate other places where this logic might be as well and correct those.

This commit is contained in:
Anton Hvornum 2021-04-03 14:04:18 +02:00
parent bb295cb83a
commit 7ae9696f13
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class luks2():
else:
raise err
if b'Command successful.' not in (cmd_output := b''.join(cmd_handle)):
if cmd_handle.exit_code != 0:
raise DiskError(f'Could not encrypt volume "{partition.path}": {cmd_output}')
return key_file