Re: [lxc-devel] [PATCH] separate console device from console log

2013-01-02 Thread Stéphane Graber
On 01/02/2013 05:33 PM, Dwight Engen wrote: > On Wed, 02 Jan 2013 13:37:29 -0500 > Stéphane Graber wrote: > >> On 12/27/2012 05:01 PM, Dwight Engen wrote: >>> lxc-start -c makes the named file/device the container's console, >>> but using this with a regular file in order to get a log of the >>>

Re: [lxc-devel] [PATCH] separate console device from console log

2013-01-02 Thread Dwight Engen
On Wed, 02 Jan 2013 13:37:29 -0500 Stéphane Graber wrote: > On 12/27/2012 05:01 PM, Dwight Engen wrote: > > lxc-start -c makes the named file/device the container's console, > > but using this with a regular file in order to get a log of the > > console output does not work very well if you also

Re: [lxc-devel] [PATCH] separate console device from console log

2013-01-02 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On 12/27/2012 05:01 PM, Dwight Engen wrote: > > lxc-start -c makes the named file/device the container's console, but using > > this with a regular file in order to get a log of the console output does > > not work very well if you also want to login

Re: [lxc-devel] [PATCH] lxc-ps: use posix shell and awk instead of bash

2013-01-02 Thread Stéphane Graber
On 01/02/2013 01:00 PM, Stéphane Graber wrote: > On 12/26/2012 04:31 PM, Natanael Copa wrote: >> Use awk to parse the output pf 'ps' and the tasks files for the >> containers. >> >> Use awk fields to find PID column rather than assume that the PID field >> is exactly 5 chars wide and has a leading

Re: [lxc-devel] [PATCH] separate console device from console log

2013-01-02 Thread Stéphane Graber
On 12/27/2012 05:01 PM, Dwight Engen wrote: > lxc-start -c makes the named file/device the container's console, but using > this with a regular file in order to get a log of the console output does > not work very well if you also want to login on the console. This change > implements an additional

Re: [lxc-devel] [PATCH] lxc-shutdown: use posix shell instead of bash

2013-01-02 Thread Stéphane Graber
On 01/02/2013 12:57 PM, Stéphane Graber wrote: > On 12/27/2012 03:52 AM, Natanael Copa wrote: >> - avoid getopt --longoptions >> - use 'which' instead of 'type' to detect existance of tools >> - specify -s SIG with kill >> >> Signed-off-by: Natanael Copa > > Looks good. Pushed. Turns out that no

Re: [lxc-devel] [PATCH 2/5] lxc-alpine: indent fixes

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:49 PM, Natanael Copa wrote: > Signed-off-by: Natanael Copa Looks good. Pushed. Acked-by: Stéphane Graber > --- > templates/lxc-alpine.in | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-) > > diff --git a/templates/lxc-alpine.in b/template

Re: [lxc-devel] [PATCH 4/5] lxc-alpine: add support for setting arch from command line

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:49 PM, Natanael Copa wrote: > This allows us to lxc-create 32 bit guests on x86_64 hosts. > > Signed-off-by: Natanael Copa Comment below, though good enough. Pushed. Acked-by: Stéphane Graber > --- > templates/lxc-alpine.in | 28 ++-- > 1 file changed

Re: [lxc-devel] [PATCH 1/5] templates: install lxc-alpine

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:49 PM, Natanael Copa wrote: > Make sure we actually install lxc-alpine > > Signed-off-by: Natanael Copa Oops :) Acked-by: Stéphane Graber > --- > templates/Makefile.am | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/templates/Makefile.am b/templat

Re: [lxc-devel] [PATCH 5/5] lxc-alpine: add support for installing optional packages

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:49 PM, Natanael Copa wrote: > Let users append a list of packages they want install in the container > > Signed-off-by: Natanael Copa Looks good. Pushed. Acked-by: Stéphane Graber > --- > templates/lxc-alpine.in | 11 --- > 1 file changed, 4 insertions(+), 7 deletion

Re: [lxc-devel] [PATCH 3/5] lxc-alpine: add --repository option

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:49 PM, Natanael Copa wrote: > This allows specifying what repository to use for the container. > > Signed-off-by: Natanael Copa Looks good. Pushed. Acked-by: Stéphane Graber > --- > templates/lxc-alpine.in | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) >

Re: [lxc-devel] [PATCH 2/2] legacy/lxc-ls: improve finding fs mountpoint of hierarchy

2013-01-02 Thread Stéphane Graber
On 12/26/2012 04:07 AM, Natanael Copa wrote: > We cannot assume that the mount source name always starts with 'cgroup' > so we check the filesystem type instead. > > Use 'awk' instead of 'grep -E' and as it is a better tool for this job. > > This fixes the tool on systems using openrc. > > Sign

Re: [lxc-devel] [PATCH] lxc-shutdown: use posix shell instead of bash

2013-01-02 Thread Stéphane Graber
On 12/27/2012 03:52 AM, Natanael Copa wrote: > - avoid getopt --longoptions > - use 'which' instead of 'type' to detect existance of tools > - specify -s SIG with kill > > Signed-off-by: Natanael Copa Looks good. Pushed. Acked-by: Stéphane Graber > --- > dash didn't complain when I tested it,

Re: [lxc-devel] [PATCH] cleanup: use lxc-info --state-is

2013-01-02 Thread Stéphane Graber
On 12/28/2012 03:24 AM, Natanael Copa wrote: > We now have the possibility to test for a given state. Use this feature > instead of parsing output with grep or awk > > Signed-off-by: Natanael Copa Looks like you didn't test the lxc-clone part as --status-is doesn't exist, it's --state-is. Diff u

Re: [lxc-devel] [PATCH] lxc-ps: use posix shell and awk instead of bash

2013-01-02 Thread Stéphane Graber
On 12/26/2012 04:31 PM, Natanael Copa wrote: > Use awk to parse the output pf 'ps' and the tasks files for the > containers. > > Use awk fields to find PID column rather than assume that the PID field > is exactly 5 chars wide and has a leading space ' PID'. This works as > long as the PID field i

Re: [lxc-devel] [PATCH] fix open check (0 is a valid fd)

2013-01-02 Thread Stéphane Graber
On 12/31/2012 02:02 PM, Dwight Engen wrote: > Signed-off-by: Dwight Engen Looks good, thanks. Pushed. Acked-by: Stéphane Graber > --- > src/lxc/console.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/lxc/console.c b/src/lxc/console.c > index 73bec78..c3f892b 10

Re: [lxc-devel] [PATCH 1/2] lxc-netstat: improve finding fs mountpoint of hierarchy

2013-01-02 Thread Stéphane Graber
On 12/26/2012 04:07 AM, Natanael Copa wrote: > We cannot assume that the mount source name always starts with 'cgroup' > so we check the filesystem type instead. > > Use 'awk' instead of 'grep -E' and as it is a better tool for this job. > > This fixes the tool on systems using openrc. > > Sign

Re: [lxc-devel] [PATCH] Update lxc-archlinux template to work with systemd, use arch-install-scripts for installation

2013-01-02 Thread Stéphane Graber
Hi, Sorry for the delay. I didn't test the change myself but the diff looks reasonable and simplifies that template quite a bit. Acked-by: Stéphane Graber Pushed to staging. Thanks On 12/13/2012 03:00 AM, Alexander Vladimirov wrote: > --- > templates/lxc-archlinux.in | 359 > +++

[lxc-devel] Reviews

2013-01-02 Thread Stéphane Graber
Hey everyone and an happy new year! To avoid duplicating efforts, I thought it'd be worth mentioning that I intend on reviewing all currently pending patches while on my flight back from Europe. So please consider all patches up until: [PATCH 5/5] lxc-alpine: add support for installing optional p