Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-21 17:22:11 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-21 17:22:11 +0100
commitc8470b81a6f2e8395f74ce0c1168d133fb24b811 (patch)
tree2ba936dcef4f12897ba3262e3965ccf7c4d193c6 /archinstall/lib
parentc00e09517fdb5ddfbc4d40b74b11a56795cebfde (diff)
Debugging a partioning case.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index ed5d1b28..fe891b28 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -437,6 +437,7 @@ class Filesystem():
log(f'Adding partition to {self.blockdevice}', level=LOG_LEVELS.Info)
previous_partitions = self.blockdevice.partitions
+ print(previous_partitions)
if format:
partitioning = self.parted(f'{self.blockdevice.device} mkpart {type} {format} {start} {end}') == 0
else:
@@ -444,6 +445,8 @@ class Filesystem():
if partitioning:
start_wait = time.time()
+ time.sleep(2)
+ print(self.blockdevice.partitions)
while previous_partitions == self.blockdevice.partitions:
time.sleep(0.025) # Let the new partition come up in the kernel
if time.time() - start_wait > 10: