Skip to content

Commit

Permalink
Remove superfluous use of partprobe (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
codefiles committed Nov 20, 2023
1 parent 6ee6d1e commit f876ddc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,13 @@ def _fetch_part_info(self, path: Path) -> LsblkInfo:
attempts = 3
lsblk_info: Optional[LsblkInfo] = None

self.partprobe(path)
for attempt_nr in range(attempts):
time.sleep(attempt_nr + 1)
lsblk_info = get_lsblk_info(path)

if lsblk_info.partn and lsblk_info.partuuid and lsblk_info.uuid:
break

self.partprobe(path)

if not lsblk_info:
debug(f'Unable to get partition information: {path}')
raise DiskError(f'Unable to get partition information: {path}')
Expand Down Expand Up @@ -526,8 +523,6 @@ def partition(
requires_delete = modification.wipe is False
self._perform_partitioning(part_mod, modification.device, disk, requires_delete=requires_delete)

self.partprobe(modification.device.device_info.path)

def mount(
self,
dev_path: Path,
Expand Down
1 change: 0 additions & 1 deletion archinstall/lib/luks.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def lock(self):

# Get crypt-information about the device by doing a reverse lookup starting with the partition path
# For instance: /dev/sda
disk.device_handler.partprobe(self.luks_dev_path)
lsblk_info = disk.get_lsblk_info(self.luks_dev_path)

# For each child (sub-partition/sub-device)
Expand Down

0 comments on commit f876ddc

Please sign in to comment.