Merge pull request #1124 from CarlosNihelton/fix-systemsetup-reconfig-post

SystemSetupModel now acks the variant at start.
This commit is contained in:
Didier Roche 2021-11-15 09:07:13 +01:00 committed by GitHub
commit 072d2b233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
POSTINSTALL_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):