fix handling of failed installations

This commit is contained in:
Michael Hudson-Doyle 2019-12-12 15:44:34 +13:00
parent 193243a498
commit 00ab28aa78
1 changed files with 5 additions and 6 deletions

View File

@ -295,14 +295,13 @@ class InstallProgressController(BaseController):
self.progress_view.update_done() self.progress_view.update_done()
await self.copy_logs_to_target() await self.copy_logs_to_target()
if not self.auto_reboot:
await self.reboot_clicked.wait()
self.reboot()
except Exception: except Exception:
self.curtin_error() self.curtin_error()
raise
if not self.auto_reboot:
await self.reboot_clicked.wait()
self.reboot()
async def drain_curtin_events(self): async def drain_curtin_events(self):
waited = 0.0 waited = 0.0