From aa5c0e666851448850adae164cb83bb83f24b23f Mon Sep 17 00:00:00 2001 From: Matt Clauson Date: Sat, 6 Jan 2024 08:22:56 -0700 Subject: image: T5898: fix kernel-level partition rescan This fix moves from partprobe to partx to rescan the partition table on an affected disk. (cherry picked from commit f883455d9a3081780c43426ab26de9d26f24c9aa) --- python/vyos/system/disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos/system') diff --git a/python/vyos/system/disk.py b/python/vyos/system/disk.py index b8a2c0f35..7860d719f 100644 --- a/python/vyos/system/disk.py +++ b/python/vyos/system/disk.py @@ -78,7 +78,7 @@ def parttable_create(drive_path: str, root_size: int) -> None: run(command) # update partitons in kernel sync() - run(f'partprobe {drive_path}') + run(f'partx -u {drive_path}') partitions: list[str] = partition_list(drive_path) -- cgit v1.2.3