From 9da23fa560766027ec675314fcd03055e192ea50 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 4 Dec 2016 15:21:09 -0500 Subject: [PATCH] firstboot: Only add steps from modules if they have completed setup --- plinth/modules/first_boot/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/modules/first_boot/__init__.py b/plinth/modules/first_boot/__init__.py index b810cca88..b0cbb20e0 100644 --- a/plinth/modules/first_boot/__init__.py +++ b/plinth/modules/first_boot/__init__.py @@ -69,7 +69,8 @@ def _get_steps(): modules = module_loader.loaded_modules for module_object in modules.values(): if getattr(module_object, 'first_boot_steps', None): - steps.extend(module_object.first_boot_steps) + if module_object.setup_helper.get_state() != 'needs-setup': + steps.extend(module_object.first_boot_steps) _all_first_boot_steps = sorted(steps, key=operator.itemgetter('order')) return _all_first_boot_steps