From 86924ce3727aa7fe5caca248792874d221ae65cf Mon Sep 17 00:00:00 2001 From: Andrii <85483797+andriiandrieiev@users.noreply.github.com> Date: Fri, 19 Nov 2021 13:10:42 +0200 Subject: filesystem: T3946: partition resize as a service --- src/conf_mode/system-option.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/conf_mode/system-option.py') 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() -- cgit v1.2.3