Christian Brauner
dfef27a5a1
tools: use correct exit code for lxc-stop
...
When the container is already running our manpage promises to exit with 2.
Let's make it so.
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-30 18:24:15 +01:00
Christian Brauner
517587ef58
cgfs: explicitly check for NULL
...
Somehow this implementation of a cgroupfs backend decided to use the hierarchy
numbers it detects in /proc/cgroups and /proc/self/cgroups as indices for
the hierarchy struct. Controller numbering usually starts at 1 but may start at
0 if:
a) the controller is not mounted on a cgroups v1 hierarchy;
b) the controller is bound to the cgroups v2 single unified hierarchy; or
c) the controller is disabled
To avoid having to rework our fallback backend significantly, we should
explicitly check for each controller if hierarchy[i] != NULL.
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-30 15:16:52 +01:00
Christian Brauner
82a2fe03a6
cgfs: skip empty entries under /proc/self/cgroup
...
If cgroupv2 is enabled either alone or together with legacy hierarchies
/proc/self/cgroup can contain entries of the form:
0::/
These entries need to be skipped.
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-30 14:49:50 +01:00
Christian Brauner
1a704014ee
cgfs: add print_cgfs_init_debuginfo()
...
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-30 14:49:43 +01:00
Christian Brauner
d93cd5478d
Merge pull request #1261 from evgeni/lxc-ls-help-fixes
...
lxc-ls help fixes
2016-10-30 14:45:54 +01:00
Evgeni Golov
8b66257910
improve wording of the help page for lxc-ls
...
it's "list of columns", not "list of column"
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-10-30 14:20:15 +01:00
Evgeni Golov
4ce07c451e
improve help text for --fancy and --fancy-format
...
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-10-30 14:16:38 +01:00
Christian Brauner
eff366245c
Merge pull request #1260 from evgeni/find-obs-build-on-debian
...
find OpenSUSE's build also as obs-build
2016-10-30 13:40:57 +01:00
Evgeni Golov
f1fd15d693
find OpenSUSE's build also as obs-build
...
this is how it is shipped in Debian and Ubuntu
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-10-30 13:32:59 +01:00
Stéphane Graber
c6e67838a3
Merge pull request #1259 from brauner/2016-10-29/lxc_free_cgroup_sigsegv
...
cgfs: fix invalid free()
2016-10-29 18:36:05 -04:00
Christian Brauner
2446c321cf
cgfs: fix invalid free()
...
And let's be on the safe side by NULLing free()ed variables.
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-29 22:47:51 +02:00
Stéphane Graber
2ae2e35399
Merge pull request #1257 from evgeni/rpm-fixes
...
RPM build fixes
2016-10-29 14:40:04 -04:00
Evgeni Golov
bc39575656
fix rpm build, include all built files, but only once
...
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-10-29 20:29:18 +02:00
Evgeni Golov
73bf276366
use python3_sitearch for including the python code
...
Closes : #502
Signed-off-by: Evgeni Golov <evgeni@debian.org>
2016-10-29 20:29:08 +02:00
Christian Brauner
ca1faa6822
Merge pull request #1252 from stgraber/master
...
Fix environment before importing setuptools
2016-10-26 01:53:17 +02:00
Stéphane Graber
c223a53622
Fix environment before importing setuptools
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-25 19:08:34 -04:00
Christian Brauner
ac94fda679
Merge pull request #1251 from stgraber/master
...
Tweak libtool handling to work with Android
2016-10-25 23:23:17 +02:00
Stéphane Graber
f4790f1f61
Tweak libtool handling to work with Android
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-25 16:40:21 -04:00
Christian Brauner
7d1937d093
Merge pull request #1248 from tych0/use-external
...
c/r: use external
2016-10-25 10:21:38 +02:00
Serge Hallyn
00afe6d90c
Merge pull request #1249 from stgraber/master
...
ubuntu: Fix package upgrades requiring proc
2016-10-24 20:23:34 -05:00
Tycho Andersen
796a109dbe
c/r: use snprintf to compute device name
...
This will never actually overflow, because %d is 32 bits and eth is 128
bytes long, but safety first :)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-10-24 16:58:06 -06:00
Tycho Andersen
f0b458e105
c/r: drop duplicate hunk from macvlan case
...
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-10-24 16:55:27 -06:00
Stéphane Graber
e34466fe96
ubuntu: Fix package upgrades requiring proc
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-24 18:39:02 -04:00
Tycho Andersen
e269733002
c/r: add checkpoint/restore support for macvlan interfaces
...
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-10-24 21:28:56 +00:00
Tycho Andersen
2f3fbc6bf3
c/r: remember to increment netnr
...
We need this for calculating the name of unnamed interfaces in the config.
But we also need to remember to increment it :)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-10-24 21:28:56 +00:00
Tycho Andersen
0f90d613ab
c/r: use --external instead of --veth-pair
...
--veth-pair has been deprecated as of 2.6, let's use the new --external
instead.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
2016-10-24 21:28:56 +00:00
Christian Brauner
7fd5ab2afc
Merge pull request #1245 from stgraber/master
...
Setup libtool
2016-10-22 01:20:46 +02:00
Stéphane Graber
26419a7a73
Use libtool for liblxc.so
...
This should allow proper filtering of build flags for libraries and make
it easier to use PIE/PIC.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-21 18:32:18 -04:00
Christian Brauner
4ab12dacef
Merge pull request #1244 from Cypresslin/fix-lxc-copy-B
...
tools: correct the argument typo in lxc_copy
2016-10-21 13:05:39 +02:00
Po-Hsu Lin
3b0dcf2c76
tools: correct the argument typo in lxc_copy
...
Correct the backingstorage typo in lxc_copy.
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
2016-10-21 18:32:18 +08:00
Christian Brauner
0fa4e360f8
Merge pull request #1243 from stgraber/master
...
s390x: Fix seccomp handling of personalities
2016-10-20 23:45:15 +02:00
Stéphane Graber
2b097b7b0a
s390x: Fix seccomp handling of personalities
...
There are no personalities for s390x, so don't list itself as one.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-20 16:54:31 -04:00
Christian Brauner
514120e227
Merge pull request #1241 from jirutka/alpine-setfcap
...
lxc-alpine: do not drop setfcap
2016-10-18 18:49:17 +02:00
Jakub Jirutka
64365bc2e9
lxc-alpine: do not drop setfcap
...
Signed-off-by: Jakub Jirutka <jakub@jirutka.cz>
2016-10-18 18:10:51 +02:00
Christian Brauner
237c1d93e6
Merge pull request #1240 from roedie/alpine-fix-extra-packages
...
alpine: Fix installing extra packages
2016-10-18 17:22:20 +02:00
roedie
691202ae0f
alpine: Fix installing extra packages
...
Signed-off-by: Sander Klein <github@roedie.nl>
2016-10-18 16:55:16 +02:00
Serge Hallyn
70baef7c39
Merge pull request #1234 from brauner/2016-10-14/better_errors_for_lxc_start
...
tools: better error reporting for lxc-start
2016-10-18 09:49:29 -05:00
Christian Brauner
040f39c45f
tools: better error reporting for lxc-start
...
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-18 16:25:31 +02:00
Stéphane Graber
1dc94b4a1b
Merge pull request #1233 from brauner/2016-10-14/allow_overlay
...
tools: make overlay a valid backend for lxc-copy
2016-10-14 12:31:18 -04:00
Stéphane Graber
33fc3fad2d
Merge pull request #1235 from Dean4Devil/master
...
Add voidlinux distribution
2016-10-14 12:30:42 -04:00
Gregor Reitzenstein
f6bd219e6b
Add voidlinux distribution
...
Signed-off-by: Gregor Reitzenstein <dean4devil@paranoidlabs.org>
2016-10-14 15:20:39 +02:00
Christian Brauner
adc9b24992
tools: make overlay valid backend
...
So far, users could only create overlay snapshots by specifying -B overlayfs
and not with -B overlay. This adds support for -B overlay.
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-14 14:23:02 +02:00
Christian Brauner
2c34c8f203
tools: fix coding style in lxc_attach
...
Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
2016-10-14 14:22:57 +02:00
Christian Brauner
40e3d7a274
Merge pull request #1232 from Cypresslin/fix-s390x-download
...
tests: fix image download for s390x
2016-10-14 11:05:01 +02:00
Po-Hsu Lin
64ea46c721
tests: fix image download for s390x
...
Make release selection more flexible.
Update the KNOWN_RELEAES list, add yakkety and remove vivid.
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
2016-10-14 16:17:30 +08:00
Stéphane Graber
1ca09fb31e
Merge pull request #1230 from Jafaral/master
...
Drop leftover references to lxc_strerror().
2016-10-13 19:57:30 -04:00
Jafar Al-Gharaibeh
4c6f1e88e3
Drop leftover references to lxc_strerror().
...
lxc_strerror() was dropped long time ago, in 2009 to be exact.
Related commit:
7cee878951
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2016-10-13 18:35:29 -05:00
Serge Hallyn
414de7212d
Merge pull request #1229 from stgraber/master
...
archlinux: Fix resolving
2016-10-13 14:15:44 -05:00
Stéphane Graber
137162e847
archlinux: Fix resolving
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2016-10-13 15:02:56 -04:00
Serge Hallyn
5a42f4ed5a
Merge pull request #1228 from stgraber/master
...
archlinux: Do DHCP on eth0
2016-10-13 13:38:35 -05:00