write the autoinstall to something more user-data like

This commit is contained in:
Michael Hudson-Doyle 2020-03-04 16:25:42 +01:00
parent 163b81b0fc
commit 59cca21a11
1 changed files with 3 additions and 2 deletions

View File

@ -418,8 +418,9 @@ class InstallProgressController(SubiquityController):
stdout=output, stderr=subprocess.STDOUT) stdout=output, stderr=subprocess.STDOUT)
except Exception: except Exception:
log.exception("saving journal failed") log.exception("saving journal failed")
autoinstall_path = os.path.join(target_logs, 'autoinstall.yaml') autoinstall_path = os.path.join(target_logs, 'autoinstall-user-data')
autoinstall_config = yaml.dump(self.app.make_autoinstall()) autoinstall_config = "#cloud-config\n" + yaml.dump(
{"autoinstall": self.app.make_autoinstall()})
write_file(autoinstall_path, autoinstall_config, mode=0o600) write_file(autoinstall_path, autoinstall_config, mode=0o600)
async def _click_reboot(self): async def _click_reboot(self):