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:
parent
bb295cb83a
commit
7ae9696f13
|
|
@ -109,7 +109,7 @@ class luks2():
|
||||||
else:
|
else:
|
||||||
raise err
|
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}')
|
raise DiskError(f'Could not encrypt volume "{partition.path}": {cmd_output}')
|
||||||
|
|
||||||
return key_file
|
return key_file
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue