summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-11-11 05:01:45 -0600
committerKim Hagen <kim@sentrium.io>2021-11-11 05:01:45 -0600
commite8c3b66a17473785044ab1a1515ad1485d0870b2 (patch)
treeb73b3a297ab22da79f1a18039ae15c74b1ac4858 /op-mode-definitions
parentdeea1c6a2070276c0cd2f78bf0346c993773a900 (diff)
downloadvyos-1x-e8c3b66a17473785044ab1a1515ad1485d0870b2.tar.gz
vyos-1x-e8c3b66a17473785044ab1a1515ad1485d0870b2.zip
T3946: Automatically resize the root partition if the drive has extra space
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/force-part-resize.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/force-part-resize.xml.in b/op-mode-definitions/force-part-resize.xml.in
new file mode 100644
index 000000000..cb76273c7
--- /dev/null
+++ b/op-mode-definitions/force-part-resize.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="force">
+ <children>
+ <node name="resize-partition">
+ <properties>
+ <help>Resize the VyOS partition</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/force_part_resize.sh</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>