subiquity in 18.04.1 via cloud-init doesn't set hostname persistence
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned | ||
subiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When installing with Subiquity, on the Live ISOs for Server, once the system is installed, cloud-init in /etc/cloud/
In essence, if you are trying to change the hostname post-install on such an installation, the changed hostname will *not* persist.
Therefore, if I installed with the hostname 'ubuntu' and want to change it to 'teward-server', the typical process is to edit /etc/hosts, /etc/hostname, and run hostnamectl to change the hostname references for the system.
Currently, however, we have to set preserve_hostname to 'True' for /etc/cloud/
It should probably be done by Subiquity that after you install it you set persist_hostname to "True" in order for hostname changes post-install to still be kept and applied.