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-02 08:58:58 +0000
committerGitHub <noreply@github.com>2021-04-02 08:58:58 +0000
commit5f9966b5c1c4ead5cb98b96ab2591b5b1d108260 (patch)
tree01ad31d521c786285e8be7da4c87e163feda07d9 /archinstall
parent2fd570167d474f17c3fbb60a938e44d37602df89 (diff)
parentef7f2f53b1838a479837af52cb24bd5552792b75 (diff)
Merge pull request #136 from Torxed/torxed-135
Missing variable
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/luks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index 19c21795..57163e35 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -94,8 +94,8 @@ class luks2():
else:
raise err
- if b'Command successful.' not in b''.join(cmd_handle):
- raise DiskError(f'Could not encrypt volume "{partition.path}": {o}')
+ if b'Command successful.' not in (cmd_output := b''.join(cmd_handle)):
+ raise DiskError(f'Could not encrypt volume "{partition.path}": {cmd_output}')
return key_file
@@ -126,4 +126,4 @@ class luks2():
def format(self, path):
if (handle := sys_command(f"/usr/bin/cryptsetup -q -v luksErase {path}")).exit_code != 0:
- raise DiskError(f'Could not format {path} with {self.filesystem} because: {b"".join(handle)}') \ No newline at end of file
+ raise DiskError(f'Could not format {path} with {self.filesystem} because: {b"".join(handle)}')