From ef7f2f53b1838a479837af52cb24bd5552792b75 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 1 Apr 2021 22:12:52 +0200 Subject: Missing variable This should fix #135 --- archinstall/lib/luks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archinstall/lib/luks.py') 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)}') -- cgit v1.2.3-54-g00ecf