summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-08 19:03:04 +0100
committerGitHub <noreply@github.com>2024-01-08 19:03:04 +0100
commit3f64c00c892b12673c80ddf450334848476f5249 (patch)
treeb5a5f47457dc30e9a5f7302d08bcd50da4909ae0
parent54c7a301b9dad792ab437751ac693c7c068770fd (diff)
parentaa5c0e666851448850adae164cb83bb83f24b23f (diff)
downloadvyos-1x-3f64c00c892b12673c80ddf450334848476f5249.tar.gz
vyos-1x-3f64c00c892b12673c80ddf450334848476f5249.zip
Merge pull request #2772 from vyos/mergify/bp/sagitta/pr-2760
image: T5898: fix kernel-level partition rescan (backport #2760)
-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)