Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-11-20 06:56:12 -0500
committerGitHub <noreply@github.com>2023-11-20 12:56:12 +0100
commitf876ddc68eedb57f315b345aa45703b7acaabc98 (patch)
tree152b48b208566573379ad445450fb711e4cd3fd0 /archinstall
parent6ee6d1eda05d3f69f6aaabac55a741e693449994 (diff)
Remove superfluous use of `partprobe` (#2212)
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk/device_handler.py5
-rw-r--r--archinstall/lib/luks.py1
2 files changed, 0 insertions, 6 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index baed2f6f..50e8c59c 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -378,7 +378,6 @@ class DeviceHandler(object):
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)
@@ -386,8 +385,6 @@ class DeviceHandler(object):
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}')
@@ -526,8 +523,6 @@ class DeviceHandler(object):
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,
diff --git a/archinstall/lib/luks.py b/archinstall/lib/luks.py
index 4b3b3bc7..c917420e 100644
--- a/archinstall/lib/luks.py
+++ b/archinstall/lib/luks.py
@@ -162,7 +162,6 @@ class Luks2:
# 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)