Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorWilhelm Ã…kermark <willyt3hwhale@gmail.com>2021-12-12 08:58:24 +0100
committerGitHub <noreply@github.com>2021-12-12 08:58:24 +0100
commitb0c8346fa7969f8b10029fdd68ece0fef0f65a4f (patch)
tree621bb9f3ffc7b90ea6d7581f3bb7877ea6e72741 /archinstall/lib/disk
parentc0b83e7f2febcadff6df6a7d0fbd04984cba5314 (diff)
Fixing possible race condition with partprobe (#796)
* Update partition.py * Added sleep after partprobe Added sleep after partprobe. Without this tools such as lsblk may be unable to retrieve certain properties of devices (such as partuuid).
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/filesystem.py1
-rw-r--r--archinstall/lib/disk/partition.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index edf54eb5..ac970b2a 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -127,6 +127,7 @@ class Filesystem:
def partprobe(self):
SysCommand(f'bash -c "partprobe"')
+ time.sleep(1)
def raw_parted(self, string: str):
if (cmd_handle := SysCommand(f'/usr/bin/parted -s {string}')).exit_code != 0:
diff --git a/archinstall/lib/disk/partition.py b/archinstall/lib/disk/partition.py
index d3efe5cf..0da991ef 100644
--- a/archinstall/lib/disk/partition.py
+++ b/archinstall/lib/disk/partition.py
@@ -207,6 +207,7 @@ class Partition:
def partprobe(self):
SysCommand(f'bash -c "partprobe"')
+ time.sleep(1)
def detect_inner_filesystem(self, password):
log(f'Trying to detect inner filesystem format on {self} (This might take a while)', level=logging.INFO)