fix rebooting after a partially interactive install

If the install is part-interactive, the client still runs and still
POSTs to the /reboot endpoint, so do not reject all requests to its
methods
This commit is contained in:
Michael Hudson-Doyle 2021-03-18 16:06:03 +13:00
parent 32ee93e797
commit 78856b3752
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ class RebootController(SubiquityController):
self.user_reboot_event.set()
await self.rebooting_event.wait()
def interactive(self):
return self.app.interactive
def start(self):
self.app.aio_loop.create_task(self._run())