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-19 13:10:42 +0200 |
commit | bfc2d162e0ca07d7d2a9fe4967690b6399057c3d (patch) | |
tree | 1f984e9c63144691440c32f2a153884807b21f0c /src/conf_mode | |
parent | 1353757247c027f6352000a9450b502c25c460c8 (diff) | |
download | vyos-1x-bfc2d162e0ca07d7d2a9fe4967690b6399057c3d.tar.gz vyos-1x-bfc2d162e0ca07d7d2a9fe4967690b6399057c3d.zip |
filesystem: T3946: partition resize as a service
Diffstat (limited to 'src/conf_mode')
-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 55cf6b142..b1c63e316 100755 --- a/src/conf_mode/system-option.py +++ b/src/conf_mode/system-option.py @@ -126,6 +126,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() |