Skip to content

Commit

Permalink
Merged upstream/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed committed Nov 9, 2024
2 parents 8adff2f + 28eaa8c commit c4d6c0f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,11 @@ def _lvm_info(
return None

def _lvm_info_with_retry(self, cmd: str, info_type: Literal['lv', 'vg', 'pvseg']) -> Optional[Any]:
attempts = 3

for attempt_nr in range(attempts):
while True:
try:
return self._lvm_info(cmd, info_type)
except ValueError:
time.sleep(attempt_nr + 1)

raise ValueError(f'Failed to fetch {info_type} information')
time.sleep(3)

def lvm_vol_info(self, lv_name: str) -> Optional[LvmVolumeInfo]:
cmd = (
Expand Down

0 comments on commit c4d6c0f

Please sign in to comment.