diff --git a/qubes/tools/qvm_template_postprocess.py b/qubes/tools/qvm_template_postprocess.py index 1f2f9a01..f37889c7 100644 --- a/qubes/tools/qvm_template_postprocess.py +++ b/qubes/tools/qvm_template_postprocess.py @@ -121,8 +121,13 @@ def post_install(args): import_data(args.dir, vm) app.save() - # TODO: retrieve appmenus - + if not app.vmm.offline_mode: + # just created, so no need to save previous value - we know what it was + vm.netvm = None + vm.start(start_guid=False) + vm.fire_event('template-postinstall') + vm.shutdown(wait=True) + vm.netvm = qubes.property.DEFAULT return 0