summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-option.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-27 20:19:28 +0100
committerGitHub <noreply@github.com>2021-11-27 20:19:28 +0100
commitbf42ec2bc04c30f85bca15472c1ad04c1366c1d3 (patch)
tree01ce9f56598efe16157f48bef10ebadf81d0dcae /src/conf_mode/system-option.py
parentf7ffdcd18f81fdc9fd3ad8c0ee5fe58903d548fa (diff)
parent1c72a0ebb69ccdffcf33f917359e3da888f8db38 (diff)
downloadvyos-1x-bf42ec2bc04c30f85bca15472c1ad04c1366c1d3.tar.gz
vyos-1x-bf42ec2bc04c30f85bca15472c1ad04c1366c1d3.zip
Merge pull request #1085 from andriiandrieiev/equuleus
filesystem: T3946: root partition auto resize as a service
Diffstat (limited to 'src/conf_mode/system-option.py')
-rwxr-xr-xsrc/conf_mode/system-option.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/system-option.py b/src/conf_mode/system-option.py
index 454611c55..ddb91aeaf 100755
--- a/src/conf_mode/system-option.py
+++ b/src/conf_mode/system-option.py
@@ -125,6 +125,12 @@ def apply(options):
if 'keyboard_layout' in options:
cmd('loadkeys {keyboard_layout}'.format(**options))
+ # Enable/diable root-partition-auto-resize SystemD service
+ if 'root_partition_auto_resize' in options:
+ cmd('systemctl enable root-partition-auto-resize.service')
+ else:
+ cmd('systemctl disable root-partition-auto-resize.service')
+
if __name__ == '__main__':
try:
c = get_config()