Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-03 14:04:18 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-03 14:04:18 +0200
commit7ae9696f133b114ef40fe3ba3c29ecb81f110467 (patch)
treec73c30c8cf3ddd43b9d913e1d27f926576c95fe3 /archinstall
parentbb295cb83a21e104fd39e05b627403d170c2c445 (diff)
This should correct #135. I'll have to investigate other places where this logic might be as well and correct those.
Diffstat (limited to 'archinstall')
-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