Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-18 13:46:28 +0000
committerGitHub <noreply@github.com>2021-11-18 13:46:28 +0000
commitbd48a6918f3e50388cd90728f2db515c48d3701b (patch)
tree6ff7a308b69d2f532f6ece7c675db71e4302d054
parentd2a4572e98044d4af504aabd0203b6c89e9991bf (diff)
parentb3d41551140129a8a3455a533b5a5e30b410e537 (diff)
Merge PR #732 - Fixed #718
Swapped .get() statement for a verification om Partition().uuid
-rw-r--r--archinstall/lib/disk/partition.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py
index 90e1aeea..2469a390 100644
--- a/archinstall/lib/disk/partition.py
+++ b/archinstall/lib/disk/partition.py
@@ -153,7 +153,8 @@ class Partition:
partuuid_struct = SysCommand(f'lsblk -J -o+PARTUUID {self.path}')
if partuuid_struct.exit_code == 0:
if partition_information := next(iter(json.loads(partuuid_struct.decode('UTF-8'))['blockdevices']), None):
- return partition_information.get('partuuid', None)
+ if (partuuid := partition_information.get('partuuid', None)):
+ return partuuid
time.sleep(storage['DISK_TIMEOUTS'])