From 339469d6eea42bd8af7b4fd51d00f262f68d1026 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 27 May 2022 20:37:04 +0200 Subject: Creates partition label on drives with zero partitions before adding partitions (#1256) * If BlockDevice.partitions is zero, we set a new partition label to ensure new drives are setup correctly * Added a sleep after mklabel. * Removed redundant log message. * Tweaked log message from print() to log(). * Trying PARTUUID in reusage of partitions. * Debugging. --- archinstall/lib/disk/blockdevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib/disk/blockdevice.py') diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py index c4707abd..c7b69205 100644 --- a/archinstall/lib/disk/blockdevice.py +++ b/archinstall/lib/disk/blockdevice.py @@ -312,4 +312,4 @@ class BlockDevice: log(f"Could not find {uuid}/{partuuid} in disk after 5 retries", level=logging.INFO) log(f"Cache: {self.part_cache}") log(f"Partitions: {self.partitions.items()}") - raise DiskError(f"New partition {uuid}/{partuuid} never showed up after adding new partition on {self}") + raise DiskError(f"Partition {uuid}/{partuuid} was never found on {self} despite several attempts.") -- cgit v1.2.3-70-g09d2