write the autoinstall to something more user-data like
This commit is contained in:
parent
163b81b0fc
commit
59cca21a11
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue