diff options
author | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2021-11-19 13:10:42 +0200 |
---|---|---|
committer | Andrii <85483797+andriiandrieiev@users.noreply.github.com> | 2021-11-25 14:26:39 +0200 |
commit | 86924ce3727aa7fe5caca248792874d221ae65cf (patch) | |
tree | 1b020c52733ae2993cd53e57f9443e9fd23f7416 /src/conf_mode/system-option.py | |
parent | af1cfebaff5e98cf0e50325863def209f965abd4 (diff) | |
download | vyos-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-x | src/conf_mode/system-option.py | 6 |
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() |