Public bug reported:

When installing with Subiquity, on the Live ISOs for Server, once the
system is installed, cloud-init in /etc/cloud/cloud.cfg has
preserve_hostname set to "False".

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/cloud.cfg in order for the hostname change to persist.

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.

** Affects: subiquity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1809155

Title:
  subiquity in 18.04.1 via cloud-init doesn't set hostname persistence

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1809155/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to