[lxc-devel] [PATCH 2/2] lxc-alpine: option for specifying the release to be installed

2013-06-26 Thread Kaarle Ritvanen
Signed-off-by: Kaarle Ritvanen --- templates/lxc-alpine.in | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index b39db16..410c817 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -1

[lxc-devel] [PATCH 1/2] lxc-alpine: automatic repository selection

2013-06-26 Thread Kaarle Ritvanen
pick random server from mirror list use the latest stable release Signed-off-by: Kaarle Ritvanen --- templates/lxc-alpine.in | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index cdf2743..b39db

Re: [lxc-devel] [PATCH 1/2] lxc-alpine: automatic repository selection

2013-06-26 Thread Natanael Copa
On Wed, 26 Jun 2013 11:14:59 +0300 Kaarle Ritvanen wrote: > pick random server from mirror list > use the latest stable release > > Signed-off-by: Kaarle Ritvanen > --- > templates/lxc-alpine.in | 31 +-- > 1 file changed, 29 insertions(+), 2 deletions(-) ack -nc

Re: [lxc-devel] [PATCH 2/2] lxc-alpine: option for specifying the release to be installed

2013-06-26 Thread Natanael Copa
On Wed, 26 Jun 2013 11:15:00 +0300 Kaarle Ritvanen wrote: > Signed-off-by: Kaarle Ritvanen > --- > templates/lxc-alpine.in | 23 --- > 1 file changed, 16 insertions(+), 7 deletions(-) I tested with '--release v2.6' and '--relase edge'. It only work when apk is not found.

Re: [lxc-devel] Possible bug in lxc-netstat w/ patch; feature patch

2013-06-26 Thread Serge Hallyn
Quoting Andrew Gilbert (andrewg...@gmail.com): > Hi, > I think I've discovered a bug in lxc-netstat when trying to have it run > netstat with the '-n' option. I've attached a patch for this below > (patch 1). I've also attached a patch that tries to Do The Right Thing > if someone uses '-n' with

[lxc-devel] [PATCH 1/2] Add double-dash to lxc-netstat re-call arguments

2013-06-26 Thread Andrew Gilbert
When lxc-netstat was called by lxc-unshare, it would be given the arguments intended for netstat from the first invocation, but without anything to separate them from the arguments intended for lxc-netstat. This meant that netstat arguments like -n would result in lxc-netstat trying to process them

Re: [lxc-devel] Possible bug in lxc-netstat w/ patch; feature patch

2013-06-26 Thread Andrew Gilbert
Regarding the second patch, my thought is that if a user forgets the '--', the current behaviour will either crash as described in my bug report, or try to use the following arguments as the name of the container to open. That is, I believe that lxc-netstat -n -n -a will result in tr

[lxc-devel] [PATCH 2/2] Add -n differentiation to lxc-netstat

2013-06-26 Thread Andrew Gilbert
lxc-netstat now only processes an -n argument if it has not previously received a value for $name from --name or -n. If it _has_ received such a value, it stops processing arguments and leaves the -n for netstat. This does not apply to the use of --name after a name has been provided by --name or -