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:
parent
71b410ef4c
commit
4bb8ee3b3b
|
@ -78,8 +78,10 @@ class SystemSetupServer(SubiquityServer):
|
||||||
root = '/'
|
root = '/'
|
||||||
if self.opts.dry_run:
|
if self.opts.dry_run:
|
||||||
root = os.path.abspath('.subiquity')
|
root = os.path.abspath('.subiquity')
|
||||||
return SystemSetupModel(root, self.hub, INSTALL_MODEL_NAMES,
|
model = SystemSetupModel(root, self.hub, INSTALL_MODEL_NAMES,
|
||||||
POSTINSTALL_MODEL_NAMES)
|
POSTINSTALL_MODEL_NAMES)
|
||||||
|
model.set_source_variant(self.variant)
|
||||||
|
return model
|
||||||
|
|
||||||
# We don’t have cloudinit in system_setup.
|
# We don’t have cloudinit in system_setup.
|
||||||
async def wait_for_cloudinit(self):
|
async def wait_for_cloudinit(self):
|
||||||
|
|
Loading…
Reference in New Issue