Re: [lxc-devel] [RFC PATCH] lxc: add clone hook.

2013-05-24 Thread Scott Moser
On Wed, 15 May 2013, Serge Hallyn wrote: > > > Soon analogous create and destroy hooks will be added as well. > > > > I think I'd have preferred storing the command arguments in > > LXC_CLONE_ARGS instead of directly in argv. Doing so would allow us to > > remove/add other arguments without breaki

[lxc-devel] [PATCH] ubuntu-cloud-prep: cleanup, fix bug with userdata

2013-08-10 Thread Scott Moser
--userdata was broken, completely missing an implementation. This adds that implementation back in, makes 'debug' logic correct, and then also improves the doc at the top. Signed-off-by: Scott Moser diff --git a/hooks/ubuntu-cloud-prep b/hooks/ubuntu-cloud-prep index 159fd02..7985

[lxc-devel] [PATCH] ubuntu-cloud-prep: cleanup, fix bug with userdata

2013-08-10 Thread Scott Moser
ubuntu-cloud-prep: cleanup, fix bug with userdata --userdata was broken, completely missing an implementation. This adds that implementation back in, makes 'debug' logic correct, and then also improves the doc at the top. Signed-off-by: Scott Moser diff --git a/hooks/ubuntu-cloud-pr

[lxc-devel] ubuntu-cloud-prep: patch /sbin/start for overlayfs

2013-08-16 Thread Scott Moser
ed job. Should overlayfs ever gain inotify support, this should still not cause any harm. Signed-off-by: Scott Moser diff --git a/hooks/ubuntu-cloud-prep b/hooks/ubuntu-cloud-prep index 7985a73..5e0a999 100755 --- a/hooks/ubuntu-cloud-prep +++ b/hooks/ubuntu-cloud-prep @@ -12,6 +12,7 @@ ## L

[lxc-devel] [PATCH] ubuntu-cloud-prep: improve overlayfs workaround

2013-08-19 Thread Scott Moser
t the underlay. The problem is described under bug 1213925. Signed-off-by: Scott Moser --- hooks/ubuntu-cloud-prep | 69 + 1 file changed, 12 insertions(+), 57 deletions(-) diff --git a/hooks/ubuntu-cloud-prep b/hooks/ubuntu-cloud-prep index a69

[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

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-host

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

2013-08-22 Thread Scott Moser
ctly. Signed-off-by: Scott Moser --- hooks/ubuntu-cloud-prep | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hooks/ubuntu-cloud-prep b/hooks/ubuntu-cloud-prep index c4c3620..f0b30ea 100755 --- a/hooks/ubuntu-cloud-prep +++ b/hooks/ubuntu-cloud-prep @@ -49,8 +49,8

Re: [lxc-devel] [PATCH] lxc-ubuntu-cloud: pass --numeric-owner and -p to untar

2013-10-07 Thread Scott Moser
because the 'build_root_tgz' path is only taken if there is no '-root.tar.gz' file for download, and the only supported ubuntu release without the -root.tar.gz download is 10.04 at this point. Anyway, below is a more complete diff, also including a fix as '--numeric-uid&