summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch
diff options
context:
space:
mode:
authorJim Somerville <Jim.Somerville@windriver.com>2015-07-09 09:58:28 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-07-14 14:32:07 -0400
commitfb380fd60f31edf9786e1ad82c1e76eefad82697 (patch)
tree126edee52d6551362299a5a5382e15c26a862567 /recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch
parenta89c11a3d89601f6d8499bd7d0f265cf4512d772 (diff)
downloadmeta-virtualization-fb380fd60f31edf9786e1ad82c1e76eefad82697.tar.gz
lxc: upgrade to version 1.1.2
This version has better support for unprivileged containers. Two patches are deleted as they are now included. One new patch is introduced to fix a file not found error at the install build step. Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch')
-rw-r--r--recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch b/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch
deleted file mode 100644
index d1d31eea..00000000
--- a/recipes-containers/lxc/files/lxc-helper-create-local-action-function.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From aada9da49caca9e4a25764df2d2a2c11d9d95dbb Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@windriver.com>
3Date: Fri, 10 Apr 2015 10:55:49 -0400
4Subject: [PATCH] lxc-helper: create local action() function
5
6Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
7---
8 config/init/sysvinit/lxc.in | 14 ++++++++++++++
9 1 file changed, 14 insertions(+)
10
11diff --git a/config/init/sysvinit/lxc.in b/config/init/sysvinit/lxc.in
12index 19c102e74c86..9f96a4f7496f 100644
13--- a/config/init/sysvinit/lxc.in
14+++ b/config/init/sysvinit/lxc.in
15@@ -52,6 +52,20 @@ test ! -r "$sysconfdir"/sysconfig/lxc ||
16 # Check for needed utility program
17 [ -x "$bindir"/lxc-autostart ] || exit 1
18
19+action()
20+{
21+ local STRING rc
22+
23+ STRING=$1
24+ echo -n "$STRING "
25+
26+ shift
27+ "$@" && success $"$STRING" || failure $"$STRING"
28+ rc=$?
29+
30+ return $rc
31+}
32+
33 # If libvirtd is providing the bridge, it might not be
34 # immediately available, so wait a bit for it before starting
35 # up the containers or else any that use the bridge will fail
36--
372.1.0
38