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-04 13:15:32 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-04 13:15:32 +0200
commitd66e3f2956d7ac663afada067d25feb3c367bbe1 (patch)
tree54b0cb53465982fee749363ce0885b98dbfb3ae4 /archinstall
parentf452655d4fb18971fef423225d34bc770bc6c97b (diff)
parentef021698b698037388771600e4815b8e9152872d (diff)
Merging in latest changes from master.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 31e8e007..4ea9f214 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -198,9 +198,9 @@ class Partition():
This is more reliable than relying on /dev/disk/by-partuuid as
it doesn't seam to be able to detect md raid partitions.
"""
- lsblk = b''.join(sys_command(f'lsblk -J {self.path}'))
+ lsblk = b''.join(sys_command(f'lsblk -J -o+PARTUUID {self.path}'))
for partition in json.loads(lsblk.decode('UTF-8'))['blockdevices']:
- return partition['partuuid']
+ return partition.get('partuuid', None)
@property
def encrypted(self):