SystemSetupModel now acks the variant at start.

- Without this change, wsl_configuration variant is not reckon without
  client_variant.POST.
- Issue and suggestions of fixes originally reported by jpnurmi.
This commit is contained in:
Carlos Nihelton 2021-11-11 09:22:10 -03:00
parent 71b410ef4c
commit 4bb8ee3b3b
1 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ class SystemSetupServer(SubiquityServer):
root = '/'
if self.opts.dry_run:
root = os.path.abspath('.subiquity')
return SystemSetupModel(root, self.hub, INSTALL_MODEL_NAMES,
model = SystemSetupModel(root, self.hub, INSTALL_MODEL_NAMES,
POSTINSTALL_MODEL_NAMES)
model.set_source_variant(self.variant)
return model
# We dont have cloudinit in system_setup.
async def wait_for_cloudinit(self):