diff options
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 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() |