[lxc-devel] [PATCH] Clone bridge interface MTU setting

2015-08-21 Thread Natanael Copa
with different MTU settings. Signed-off-by: Natanael Copa --- src/lxc/conf.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 309ceea..a3d45ee 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2609,7 +2609,7 @@ static int

[lxc-devel] [PATCH] lxc-alpine: fix verification of apk.static binary

2015-08-03 Thread Natanael Copa
We need specify which hashing algorithm was used to create the signature we check. Fixes #609 Signed-off-by: Natanael Copa --- This should also go to the stable-1.0 and stable-1.1 branches. templates/lxc-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates

[lxc-devel] [PATCH] lxc-alpine: create /dev/shm before mounting

2015-04-24 Thread Natanael Copa
This is needed for lxc.autodev=1 to work. Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 886a838..963c42a 100644 --- a/templates/lxc-alpine.in +++ b/templates

[lxc-devel] [PATCH] lxc-alpine: use yaml for detection of latest release

2014-12-30 Thread Natanael Copa
Alpine Linux provides yaml files with latest release instead of the old approach with .latest.txt. Signed-off-by: Natanael Copa --- Should also go to 1.0.x stable templates/lxc-alpine.in | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/lxc-alpine.in b

[lxc-devel] [PATCH] lxc-alpine: create a default tty for console

2014-11-27 Thread Natanael Copa
Create a tty so we get login prompt on console by default Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 47df559..ba27aea 100644 --- a/templates/lxc-alpine.in +++ b/templates

[lxc-devel] [PATCH] lxc-alpine: make sure /dev/shm is world writeable

2014-11-27 Thread Natanael Copa
Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 7a22d5e..47df559 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -246,7 +246,7

Re: [lxc-devel] lxc on openSUSE: lxc-top not working due to lua?

2014-05-17 Thread Natanael Copa
On Sat, 17 May 2014 09:44:28 -0400 "Michael H. Warfield" wrote: > Hey, > > On Sat, 2014-05-17 at 15:24 +0200, Johannes Kastl wrote: > > Hi everyone, > > > > something is wrong with lxc-top on openSUSE: > > > > First, I got this: > > > > > LANG=POSIX lxc-top /usr/bin/env: lua: No such file or

[lxc-devel] [PATCH] lua: respect configure's --prefix

2014-03-04 Thread Natanael Copa
N for arch dependant .so module. This should work for most distros. If it does not, then packagers can still do: make install lualibdir=$(pkg-config lua --variable=INSTALL_CMOD) ... This fixes #169 Signed-off-by: Natanael Copa --- configure.ac| 6 ++ src/lua-lxc/Makefile.a

[lxc-devel] [PATCH] lxc-alpine: add support for architecture arm

2014-02-20 Thread Natanael Copa
Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index afda971..d8c6674 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -368,6 +368,9 @@ case "$arc

[lxc-devel] [PATCH] lua: Do not link Lua module to the Lua core library

2014-02-20 Thread Natanael Copa
Modules should not link to the Lua core library. See http://lua-users.org/wiki/BuildingModules under "Do Not Link Modules to the Lua Core Libraries" Signed-off-by: Natanael Copa --- src/lua-lxc/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s

[lxc-devel] [PATCH 1/2] lxc-alpine: fixes for checkbashism

2014-02-19 Thread Natanael Copa
Fix the issues reported by checkbashisms and change back to #!/bin/sh Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 5c4c585..459428d 100644 --- a

[lxc-devel] [PATCH 2/2] lxc-alpine: add checksums for musl libc build server pubkeys

2014-02-19 Thread Natanael Copa
We have added 3 new build servers for Alpine Linux musl libc x86, x86_64 and arm. Add the sha256sum for those keys. Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in

[lxc-devel] [PATCH 7/8] Include config.h early for _GNU_SOURCE with musl libc

2014-01-29 Thread Natanael Copa
[-Werror] af_unix.c:210:3: error: (near initialization for 'cred') [-Werror] af_unix.c:211:3: error: unknown field 'gid' specified in initializer .gid = getgid(), ^ and more... Signed-off-by: Natanael Copa --- src/lxc/af_unix.c | 4 ++-- src/lxc/cgmanager.c | 5 ++--

[lxc-devel] [PATCH 5/8] Don't include linux/if_bridge.h

2014-01-29 Thread Natanael Copa
^ In file included from /usr/include/net/ethernet.h:10:0, from network.c:42: /usr/include/netinet/if_ether.h:93:8: note: originally defined here struct ethhdr { ^ Signed-off-by: Natanael Copa --- src/lxc/network.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lxc

[lxc-devel] [PATCH 8/8] Include config.h early for _GNU_SOURCE with uClibc

2014-01-29 Thread Natanael Copa
ings being treated as errors lxc_usernsexec.c: In function 'read_default_map': lxc_usernsexec.c:181:2: error: implicit declaration of function 'getline' [-Werror=implicit-function-declaration] while (getline(&line, &sz, fin) != -1) { ^ cc1: all warnings being treat

[lxc-devel] [PATCH 4/8] Include limits.h for NAME_MAX

2014-01-29 Thread Natanael Copa
This fixes compile error with musl libc: In file included from start.c:66:0: monitor.h:38:12: error: 'NAME_MAX' undeclared here (not in a function) char name[NAME_MAX+1]; ^ Signed-off-by: Natanael Copa --- src/lxc/monitor.h | 1 + 1 file changed, 1 insertion(+) diff -

[lxc-devel] [PATCH 6/8] Check for non-posix utmpxname in configure

2014-01-29 Thread Natanael Copa
or=implicit-function-declaration] if (!access(path, F_OK) && !utmpxname(path)) ^ Signed-off-by: Natanael Copa --- configure.ac | 2 +- src/lxc/lxcutmp.c | 31 +++ 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configu

[lxc-devel] [PATCH 2/8] Use the standard 'unsigned int' instead or non-standard 'uint'

2014-01-29 Thread Natanael Copa
This fixes compile error when build with musl libc: conf.h:92:2: error: unknown type name 'uint' uint fmask; ^ Signed-off-by: Natanael Copa --- src/lxc/conf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/conf.h b/src/lxc/conf.h index a0ce3f

[lxc-devel] [PATCH 3/8] Include strings.h for strcasecmp

2014-01-29 Thread Natanael Copa
This fixes the following error with musl libc: In file included from start.c:59:0: log.h: In function 'lxc_log_priority_to_int': log.h:136:2: error: implicit declaration of function 'strcasecmp' [-Werror=implicit-function-declaration] Signed-off-by: Natanael Copa --- sr

[lxc-devel] [PATCH 1/8] Include poll.h instead of sys/poll.h

2014-01-29 Thread Natanael Copa
redirecting incorrect #include to ^ Signed-off-by: Natanael Copa --- src/lxc/commands.c| 2 +- src/lxc/lxc_console.c | 2 +- src/lxc/start.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/commands.c b/src/lxc/commands.c index 8b42c59..1fca13e 100644

[lxc-devel] [PATCH 0/8] Various compile fixes for musl libc

2014-01-29 Thread Natanael Copa
This is a set with fixes for compiling LXC with musl libc. It is mostly missing includes or missing _GNU_SOURCE define. I have tested that it does not breaks uClibc and while there I fixed a compile error with uClibc and getline, the last, 8/8 path. Natanael Copa (8): Include poll.h instead

[lxc-devel] [PATCH] lxc-alpine: disable sys_admin by default

2014-01-29 Thread Natanael Copa
It is normally not needed. Signed-off-by: Natanael Copa --- templates/lxc-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 40957ab..ec6b802 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in

Re: [lxc-devel] [PATCH] Update Fedora and CentOS templates for common conf includes.

2014-01-27 Thread Natanael Copa
On Mon, 27 Jan 2014 11:17:28 -0500 Dwight Engen wrote: > On Fri, 24 Jan 2014 20:38:14 -0500 > "Michael H. Warfield" wrote: > > All discussion aside, this is something that should be decided and > > established as "the" convention. If it's "-r", so be it. Someone > > needs to decide this. Who

Re: [lxc-devel] [PATCH] Update Fedora and CentOS templates for common conf includes.

2014-01-27 Thread Natanael Copa
On Mon, 27 Jan 2014 16:53:21 + Natanael Copa wrote: > On Mon, 27 Jan 2014 11:17:28 -0500 > Dwight Engen wrote: > > > On Fri, 24 Jan 2014 20:38:14 -0500 > > "Michael H. Warfield" wrote: > > > > All discussion aside, this is something that shou