index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | codefiles <11915375+codefiles@users.noreply.github.com> | 2023-03-26 15:40:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 21:40:08 +0200 |
commit | f6113107d6c7df763301de0816dcd1ae1d4ace4d (patch) | |
tree | b997bb160ac9440124a0f65f9a980eb6607ff026 /archinstall/lib/luks.py | |
parent | 79eb6bba627c4c70f24a265ac0b2ef9cbfbbd211 (diff) |
-rw-r--r-- | archinstall/lib/luks.py | 2 |
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py index 7e4534d8..ad6bf093 100644 --- a/archinstall/lib/luks.py +++ b/archinstall/lib/luks.py @@ -115,7 +115,7 @@ class luks2: if cmd_handle.exit_code != 0: raise DiskError(f'Could not encrypt volume "{partition.path}": {b"".join(cmd_handle)}') except SysCallError as err: - if err.exit_code == 256: + if err.exit_code == 1: log(f'{partition} is being used, trying to unmount and crypt-close the device and running one more attempt at encrypting the device.', level=logging.DEBUG) # Partition was in use, unmount it and try again partition.unmount() |