Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/luks.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-11 15:14:06 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-11 15:14:06 +0000
commit91887bf0b3efcf4f94070d14be1f97c5842a0e6b (patch)
tree7c5ce9c3904e71f42922683c910d37d86625d077 /archinstall/lib/luks.py
parent960c4e6a3db5d15775cb429935b43d4b6b257fb1 (diff)
Added more partprobe's
Diffstat (limited to 'archinstall/lib/luks.py')
-rw-r--r--archinstall/lib/luks.py3
1 files changed, 3 insertions, 0 deletions
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)