make sure late-commands actually run :(

This commit is contained in:
Michael Hudson-Doyle 2020-04-22 17:11:25 +12:00
parent ca854ddc67
commit 1ba62ec1cc
4 changed files with 7 additions and 7 deletions

View File

@ -4,9 +4,9 @@ early-commands:
- sleep 1 - sleep 1
- echo a - echo a
late-commands: late-commands:
- echo a - echo late
- sleep 1 - sleep 1
- echo a - echo late
keyboard: keyboard:
layout: gb layout: gb
interactive-sections: interactive-sections:

View File

@ -12,9 +12,9 @@ packages:
- package1 - package1
- package2 - package2
late-commands: late-commands:
- echo a - echo late
- sleep 1 - sleep 1
- echo a - echo late
keyboard: keyboard:
layout: gb layout: gb
identity: identity:

View File

@ -53,3 +53,6 @@ class EarlyController(CmdListController):
class LateController(CmdListController): class LateController(CmdListController):
autoinstall_key = 'late-commands' autoinstall_key = 'late-commands'
async def apply_autoinstall_config(self):
await self.run()

View File

@ -235,9 +235,6 @@ class Subiquity(Application):
if not self.interactive() and not self.opts.dry_run: if not self.interactive() and not self.opts.dry_run:
open('/run/casper-no-prompt', 'w').close() open('/run/casper-no-prompt', 'w').close()
super().run() super().run()
if self.controllers.Late.cmds:
self.new_event_loop()
self.aio_loop.run_until_complete(self.controllers.Late.run())
except Exception: except Exception:
print("generating crash report") print("generating crash report")
try: try: