summaryrefslogtreecommitdiff
path: root/src/conf_mode/system-option.py
diff options
context:
space:
mode:
authorAndrii <85483797+andriiandrieiev@users.noreply.github.com>2021-11-19 13:10:42 +0200
committerAndrii <85483797+andriiandrieiev@users.noreply.github.com>2021-11-25 14:26:39 +0200
commit86924ce3727aa7fe5caca248792874d221ae65cf (patch)
tree1b020c52733ae2993cd53e57f9443e9fd23f7416 /src/conf_mode/system-option.py
parentaf1cfebaff5e98cf0e50325863def209f965abd4 (diff)
downloadvyos-1x-86924ce3727aa7fe5caca248792874d221ae65cf.tar.gz
vyos-1x-86924ce3727aa7fe5caca248792874d221ae65cf.zip
filesystem: T3946: partition 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()