Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/filesystem.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-18 13:07:28 +0000
committerGitHub <noreply@github.com>2021-11-18 13:07:28 +0000
commit776823adfb2d9ea140b9d849ee9a1dd07991a94c (patch)
tree39d73ecbcacf969398185d0da93e354ebbda09ad /archinstall/lib/disk/filesystem.py
parent7d991ecb9f87f863e1e78ce7e2d06c4d2f9568db (diff)
Increased disk delays by 100% (for unsuccessful operations), successful should still be quick. (#730)
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
Diffstat (limited to 'archinstall/lib/disk/filesystem.py')
-rw-r--r--archinstall/lib/disk/filesystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index fe7be498..93b0f375 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -33,7 +33,7 @@ class Filesystem:
return True
def partuuid_to_index(self, uuid):
- for i in range(10):
+ for i in range(storage['DISK_RETRY_ATTEMPTS']):
self.partprobe()
output = json.loads(SysCommand(f"lsblk --json -o+PARTUUID {self.blockdevice.device}").decode('UTF-8'))
@@ -42,7 +42,7 @@ class Filesystem:
if (partuuid := partition.get('partuuid', None)) and partuuid.lower() == uuid:
return index
- time.sleep(1)
+ time.sleep(storage['DISK_TIMEOUTS'])
raise DiskError(f"Failed to convert PARTUUID {uuid} to a partition index number on blockdevice {self.blockdevice.device}")