Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2018-10-01 20:58:32 +0200
committerGitHub <noreply@github.com>2018-10-01 20:58:32 +0200
commit0c27146f05fb7c35efca56abf4d95aa97df759ff (patch)
tree48386fa9392b2538c5737a81cc2037ca4d57b2d1
parent627de1d71ab358bfbb30ebc12a27b79b7744efb2 (diff)
Fixed output success parsing
Some times cryptsetup added more info to the command line output.
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index 0f3182e9..48d3a399 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -305,7 +305,7 @@ if __name__ == '__main__':
# TODO: --use-random instead of --use-urandom
print('[N] Adding encryption to {drive}{partition_2}.'.format(**args))
o = run('cryptsetup -q -v --type luks2 --pbkdf argon2i --hash sha512 --key-size 512 --iter-time 10000 --key-file {pwfile} --use-urandom luksFormat {drive}{partition_2}'.format(**args))
- if not o.decode('UTF-8').strip() == 'Command successful.':
+ if not 'Command successful.' in o.decode('UTF-8').strip():
print('[E] Failed to setup disk encryption.', o)
exit(1)