summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-12-13 18:45:48 -0600
committerGitHub <noreply@github.com>2023-12-13 18:45:48 -0600
commit0d6b2d8669f88a12b7edcd88e086939c3b54b904 (patch)
tree2418944931a418bac54d31625086e08f7ca5d1ae /src
parent671d012af37729601d3cdfba65beb1daf68229a3 (diff)
parente3cd779d0bd8dd8be6231c7b2028326a03e6a06c (diff)
downloadvyos-1x-0d6b2d8669f88a12b7edcd88e086939c3b54b904.tar.gz
vyos-1x-0d6b2d8669f88a12b7edcd88e086939c3b54b904.zip
Merge pull request #2621 from jestabro/clear-raid-on-install
image-tools: T5806: clear previous raid configs on install
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/image_installer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 9452c5e28..66ce8f2e6 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -179,6 +179,7 @@ def create_partitions(target_disk: str, target_size: int,
rootfs_size: int = available_size
print(MSG_INFO_INSTALL_PARTITONING)
+ raid.clear()
disk.disk_cleanup(target_disk)
disk_details: disk.DiskDetails = disk.parttable_create(target_disk,
rootfs_size)