summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMatt Clauson <mec@dotorg.org>2024-01-06 08:22:56 -0700
committerMatt Clauson <mec@dotorg.org>2024-01-06 08:22:56 -0700
commitf883455d9a3081780c43426ab26de9d26f24c9aa (patch)
treef484c2f22409d60254e0962ee806bd04fffc2b32 /python
parent199ceb1f0a820c838dea6862371a3121b3d9f3a9 (diff)
downloadvyos-1x-f883455d9a3081780c43426ab26de9d26f24c9aa.tar.gz
vyos-1x-f883455d9a3081780c43426ab26de9d26f24c9aa.zip
image: T5898: fix kernel-level partition rescan
This fix moves from partprobe to partx to rescan the partition table on an affected disk.
Diffstat (limited to 'python')
-rw-r--r--python/vyos/system/disk.py2
1 files changed, 1 insertions, 1 deletions
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)