From eb712a9ca557f594d891b5b6942692b6c98de62c Mon Sep 17 00:00:00 2001 From: Victor Gavro Date: Tue, 25 Jan 2022 15:45:28 +0200 Subject: FIX: disk layout: partprobe should be called and checked only for target device (#896) * disk layout: partprobe should be called and checked only for target device * disk layout: partprobe: removed unnecessary bash subprocess --- archinstall/lib/disk/partition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archinstall/lib/disk/partition.py') diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py index 3117a42c..b3db143a 100644 --- a/archinstall/lib/disk/partition.py +++ b/archinstall/lib/disk/partition.py @@ -225,7 +225,7 @@ class Partition: return bind_name def partprobe(self) -> bool: - if SysCommand(f'bash -c "partprobe"').exit_code == 0: + if SysCommand(f'partprobe {self.block_device.device}').exit_code == 0: time.sleep(1) return True return False -- cgit v1.2.3-54-g00ecf