Attempting a retry-attempt on the broken part of lsblk

This commit is contained in:
Anton Hvornum 2022-12-22 11:36:29 +01:00
parent 294afd779c
commit 2ae88aec77
1 changed files with 2 additions and 1 deletions

View File

@ -214,8 +214,9 @@ def all_disks() -> List[BlockDevice]:
def get_blockdevice_info(device_path, exclude_iso_dev :bool = True) -> Dict[str, Any]:
for retry_attempt in range(storage['DISK_RETRY_ATTEMPTS']):
partprobe(device_name)
partprobe(device_path)
time.sleep(max(0.1, storage['DISK_TIMEOUTS'] * i)) # TODO: Remove, we should be relying on blkid instead of lsblk
try:
if exclude_iso_dev:
# exclude all devices associated with the iso boot locations