diff options
author | Matt Clauson <mec@dotorg.org> | 2024-01-06 08:22:56 -0700 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-08 17:51:02 +0000 |
commit | aa5c0e666851448850adae164cb83bb83f24b23f (patch) | |
tree | b5a5f47457dc30e9a5f7302d08bcd50da4909ae0 | |
parent | 54c7a301b9dad792ab437751ac693c7c068770fd (diff) | |
download | vyos-1x-aa5c0e666851448850adae164cb83bb83f24b23f.tar.gz vyos-1x-aa5c0e666851448850adae164cb83bb83f24b23f.zip |
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)
-rw-r--r-- | python/vyos/system/disk.py | 2 |
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) |