make sure late-commands actually run :(
This commit is contained in:
parent
ca854ddc67
commit
1ba62ec1cc
|
@ -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:
|
||||
|
|
|
@ -12,9 +12,9 @@ packages:
|
|||
- package1
|
||||
- package2
|
||||
late-commands:
|
||||
- echo a
|
||||
- echo late
|
||||
- sleep 1
|
||||
- echo a
|
||||
- echo late
|
||||
keyboard:
|
||||
layout: gb
|
||||
identity:
|
||||
|
|
|
@ -53,3 +53,6 @@ class EarlyController(CmdListController):
|
|||
class LateController(CmdListController):
|
||||
|
||||
autoinstall_key = 'late-commands'
|
||||
|
||||
async def apply_autoinstall_config(self):
|
||||
await self.run()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue