Re: [lxc-devel] [PATCH] hooks/ubuntu-cloud-prep: add hostname to meta-data

2013-08-22 Thread Serge Hallyn
Quoting Scott Moser (smo...@ubuntu.com): > prior to my enabling of the clone hook, the setting of the hostname > was being done by writing to /etc/hostname. Instead of relying on that > we're now writing 'local-hostname' into the metadata for the instance. > > cloud-init then reads this and sets

[lxc-devel] [PATCH] hooks/ubuntu-cloud-prep: add hostname to meta-data

2013-08-22 Thread Scott Moser
prior to my enabling of the clone hook, the setting of the hostname was being done by writing to /etc/hostname. Instead of relying on that we're now writing 'local-hostname' into the metadata for the instance. cloud-init then reads this and sets the hostname properly. We are also writing /etc/ho

Re: [lxc-devel] [PATCH] hooks/ubuntu-cloud-prep: add hostname to meta-data

2013-08-22 Thread Scott Moser
On Thu, 22 Aug 2013, Serge Hallyn wrote: > Quoting Scott Moser (smo...@ubuntu.com): > > prior to my enabling of the clone hook, the setting of the hostname > > was being done by writing to /etc/hostname. Instead of relying on that > > we're now writing 'local-hostname' into the metadata for the i

Re: [lxc-devel] [PATCH] hooks/ubuntu-cloud-prep: add hostname to meta-data

2013-08-22 Thread Serge Hallyn
Quoting Scott Moser (smo...@ubuntu.com): > prior to my enabling of the clone hook, the setting of the hostname > was being done by writing to /etc/hostname. Instead of relying on that > we're now writing 'local-hostname' into the metadata for the instance. > > cloud-init then reads this and sets

[lxc-devel] [PATCH] hooks/ubuntu-cloud-prep: add hostname to meta-data

2013-08-22 Thread Scott Moser
prior to my enabling of the clone hook, the setting of the hostname was being done by writing to /etc/hostname. Instead of relying on that we're now writing 'local-hostname' into the metadata for the instance. cloud-init then reads this and sets the hostname properly. The one caveat is that sett