index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-11 18:11:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 18:11:38 +0000 |
commit | ca52c796a55fd34cc1309f26bab86e15da722182 (patch) | |
tree | 6dd56f60f5445920788fc1a94d1e93f34c78aea7 /archinstall/lib/luks.py | |
parent | 9b944b90b151a616e36f7361c7cf3c6951e61970 (diff) | |
parent | c0bf44e0ae82bf2e379e57965c0e21694b61cd3c (diff) |
-rw-r--r-- | archinstall/lib/luks.py | 3 |
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py index d10058ef..b93403ef 100644 --- a/archinstall/lib/luks.py +++ b/archinstall/lib/luks.py @@ -61,6 +61,8 @@ class luks2: with open(key_file, 'wb') as fh: fh.write(password) + SysCommand(f'bash -c "partprobe"') # Might be redundant + cryptsetup_args = shlex.join([ '/usr/bin/cryptsetup', '--batch-mode', @@ -86,6 +88,7 @@ class luks2: # Get crypt-information about the device by doing a reverse lookup starting with the partition path # For instance: /dev/sda + SysCommand(f'bash -c "partprobe"') devinfo = json.loads(b''.join(SysCommand(f"lsblk --fs -J {partition.path}")).decode('UTF-8'))['blockdevices'][0] # For each child (sub-partition/sub-device) |