Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/blockdevice.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-05-27 20:37:04 +0200
committerGitHub <noreply@github.com>2022-05-27 20:37:04 +0200
commit339469d6eea42bd8af7b4fd51d00f262f68d1026 (patch)
tree2caf3a8f5e9e61b918d5e19114f5c31df7ebbeb3 /archinstall/lib/disk/blockdevice.py
parentdb7ecb6bacc6d829978f0d587b6888a04b85c4c1 (diff)
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.
Diffstat (limited to 'archinstall/lib/disk/blockdevice.py')
-rw-r--r--archinstall/lib/disk/blockdevice.py2
1 files changed, 1 insertions, 1 deletions
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.")