diff --git a/examples/autoinstall-interactive.yaml b/examples/autoinstall-interactive.yaml index 1f4e598d..8ee01e83 100644 --- a/examples/autoinstall-interactive.yaml +++ b/examples/autoinstall-interactive.yaml @@ -4,9 +4,9 @@ early-commands: - sleep 1 - echo a late-commands: - - echo a + - echo late - sleep 1 - - echo a + - echo late keyboard: layout: gb interactive-sections: diff --git a/examples/autoinstall.yaml b/examples/autoinstall.yaml index b35b5c40..07778107 100644 --- a/examples/autoinstall.yaml +++ b/examples/autoinstall.yaml @@ -12,9 +12,9 @@ packages: - package1 - package2 late-commands: - - echo a + - echo late - sleep 1 - - echo a + - echo late keyboard: layout: gb identity: diff --git a/subiquity/controllers/cmdlist.py b/subiquity/controllers/cmdlist.py index 48b9631d..1f75fba1 100644 --- a/subiquity/controllers/cmdlist.py +++ b/subiquity/controllers/cmdlist.py @@ -53,3 +53,6 @@ class EarlyController(CmdListController): class LateController(CmdListController): autoinstall_key = 'late-commands' + + async def apply_autoinstall_config(self): + await self.run() diff --git a/subiquity/core.py b/subiquity/core.py index 66902ab1..94afed4b 100644 --- a/subiquity/core.py +++ b/subiquity/core.py @@ -235,9 +235,6 @@ class Subiquity(Application): if not self.interactive() and not self.opts.dry_run: open('/run/casper-no-prompt', 'w').close() super().run() - if self.controllers.Late.cmds: - self.new_event_loop() - self.aio_loop.run_until_complete(self.controllers.Late.run()) except Exception: print("generating crash report") try: