Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/luks.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-03 16:28:40 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-03 16:28:40 +0200
commit9bd829c0e26f168e674bc01e8a9ee23f961fe77b (patch)
treec0e4277ebbc0d87d3474217e989904bb6ef8407b /archinstall/lib/luks.py
parentf61c61305e95c564f22120bebbb861eddd7dee45 (diff)
parentcba30b9e26bccaf3679d82a255dfe43c64a38386 (diff)
Merging in latest changes from master.
Diffstat (limited to 'archinstall/lib/luks.py')
-rw-r--r--archinstall/lib/luks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index f36a25ab..62067ec1 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -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