Re: [lxc-devel] lxc-start and lucid container

2010-05-19 Thread Daniel Lezcano
On 05/17/2010 05:00 PM, Bodhi Zazen wrote: Sorry for the delay, I missed your mail in the spam filter :/ -- ___ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://l

Re: [lxc-devel] halt and restart bugs

2010-05-19 Thread Daniel Lezcano
On 05/19/2010 11:07 PM, Denis Rizaev wrote: > I did a little investigation about runlevels and i think we can assume > runlevels 2-5 as normal. > So, we can check if system was in runlevel 2-5 and proc count is 1 and now > we are in 0/6. > I can prepare patch tomorrow if you agree with my idea. De

Re: [lxc-devel] halt and restart bugs

2010-05-19 Thread Denis Rizaev
I did a little investigation about runlevels and i think we can assume runlevels 2-5 as normal. So, we can check if system was in runlevel 2-5 and proc count is 1 and now we are in 0/6. I can prepare patch tomorrow if you agree with my idea. 2010/5/20 Daniel Lezcano > > Fixed 2) with commits : >

Re: [lxc-devel] lxc-start and lucid container

2010-05-19 Thread Bodhi Zazen
You need some of the upstart services , this is how I worked through lucid containers, they mostly seem to work, although feedback is welcome: http://blog.bodhizazen.net/linux/lxc-configure-ubuntu-lucid-containers/ http://blog.bodhizazen.net/linux/lxc-configure-debian-lenny-containers/ I am wor

Re: [lxc-devel] halt and restart bugs

2010-05-19 Thread Daniel Lezcano
On 05/10/2010 06:40 PM, Denis Rizaev wrote: > Hi folks. > I'm using latest lxc git tools on ubuntu host with debian containers. > And there are some bugs: > 1) In ubuntu, the default runlevel is 2, not 3. That's why reboot and halt > aren't handled properly. I've fixed it — patch is attached. But i

[lxc-devel] [GIT] lxc branch, master, updated. fa9ab20562649707d44bfff90df44b7bc1a9f8b3

2010-05-19 Thread Daniel Lezcano
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "lxc". The branch, master has been updated via fa9ab20562649707d44bfff90df44b7bc1a9f8b3 (commit) via 5332bb844a521401cf465cc8

Re: [lxc-devel] [PATCH] conf: remove unused code

2010-05-19 Thread Nathan Lynch
On Wed, 2010-05-19 at 21:28 +0200, Daniel Lezcano wrote: > On 05/19/2010 08:29 PM, Nathan Lynch wrote: > > Since commit ab2d32f ("Replace create/destroy by a script"), > > configure_rootfs and many of its descendents are unused; remove them. > > > > Signed-off-by: Nathan Lynch > > > > I am pla

Re: [lxc-devel] [PATCH] conf: remove unused code

2010-05-19 Thread Daniel Lezcano
On 05/19/2010 08:29 PM, Nathan Lynch wrote: > Since commit ab2d32f ("Replace create/destroy by a script"), > configure_rootfs and many of its descendents are unused; remove them. > > Signed-off-by: Nathan Lynch > I am planning to reuse this code for mounting rootfs images but that needs some

Re: [lxc-devel] [PATCH] correct asprintf error checking

2010-05-19 Thread Daniel Lezcano
On 05/19/2010 08:29 PM, Nathan Lynch wrote: > asprintf(3) returns -1 (not 0) on error. > > Signed-off-by: Nathan Lynch > --- > Right :) Thanks Nathan. -- ___ Lxc-devel mail

[lxc-devel] [PATCH] correct asprintf error checking

2010-05-19 Thread Nathan Lynch
asprintf(3) returns -1 (not 0) on error. Signed-off-by: Nathan Lynch --- src/lxc/lxc_execute.c |5 - src/lxc/lxc_restart.c |5 - src/lxc/lxc_start.c |5 - 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/lxc/lxc_execute.c b/src/lxc/lxc_execute.c index

[lxc-devel] [PATCH] conf: remove unused code

2010-05-19 Thread Nathan Lynch
Since commit ab2d32f ("Replace create/destroy by a script"), configure_rootfs and many of its descendents are unused; remove them. Signed-off-by: Nathan Lynch --- src/lxc/conf.c | 182 1 files changed, 0 insertions(+), 182 deletions(-) d