From da74262708b712e621e921e97648818357d06162 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 22 Dec 2022 13:20:15 +0100 Subject: [PATCH] Adding debug information --- archinstall/lib/disk/helpers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index 68b5b28e..00720052 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -214,6 +214,7 @@ 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']): + print(f"Attempt {retry_attempt}") partprobe(device_path) time.sleep(max(0.1, storage['DISK_TIMEOUTS'] * retry_attempt)) # TODO: Remove, we should be relying on blkid instead of lsblk @@ -234,7 +235,7 @@ def get_blockdevice_info(device_path, exclude_iso_dev :bool = True) -> Dict[str, resolved_device_name = device_path.readlink().name except OSError: resolved_device_name = device_path.name - + try: information = get_loop_info(device_path) if not information: @@ -251,6 +252,8 @@ def get_blockdevice_info(device_path, exclude_iso_dev :bool = True) -> Dict[str, print("Raising ex because:", ex.exit_code) raise ex + print(f"Could not find info for {device_path}") + def all_blockdevices( mappers: bool = False, partitions: bool = False,