These commits enable a container to be destroyed on shutdown by setting
lxc.ephemeral = 1 in its configuration file. This will allow us a consistent
implementation of lxc-copy = lxc-clone + lxc-start-ephemeral without having to
resort to hacks.
Small changes:
lxc_delete_string_in_array() has beed
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index 932d658..2103437 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -1984,7 +1984,6 @@ static bool mod_rdep(struct lxc_container *c0, struct
lxc_container *c, boo
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/utils.c b/src/lxc/utils.c
index 7ced314..5940542 100644
--- a/src/lxc/utils.c
+++ b/src/lxc/utils.c
@@ -1466,3 +1466,17 @@ err:
close(fd);
return ret;
}
+
+bool lxc_delete_string_in_array(char *haystack, size_
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/conf.h b/src/lxc/conf.h
index dc5328a..5aebd91 100644
--- a/src/lxc/conf.h
+++ b/src/lxc/conf.h
@@ -370,6 +370,9 @@ struct lxc_conf {
* should run under when using lxc-execute */
uid_t init_uid;
gid_t
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
index ada3958..475d878 100644
--- a/src/lxc/bdev.c
+++ b/src/lxc/bdev.c
@@ -3614,3 +3614,21 @@ bool rootfs_is_blockdev(struct lxc_conf *conf)
return true;
return false;
}
+
+boo
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c
index 2103437..9f22fdc 100644
--- a/src/lxc/lxccontainer.c
+++ b/src/lxc/lxccontainer.c
@@ -2213,21 +2213,6 @@ static int lxc_rmdir_onedev_wrapper(void *data)
return lxc_rmdir_on
Now we can e.g. implement ephemeral containers in a consistent way.
Signed-off-by: Christian Brauner
100.0% src/lxc/
diff --git a/src/lxc/start.c b/src/lxc/start.c
index ffb8d12..1179d2c 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -83,6 +83,11 @@ const struct ns_info ns_info[LXC_NS_MA
Fixes for the return value checks.
On Sun, Sep 06, 2015 at 10:38:21AM +0200, Christian Brauner wrote:
> Now we can e.g. implement ephemeral containers in a consistent way.
>
> Signed-off-by: Christian Brauner
>
> 100.0% src/lxc/
> diff --git a/src/lxc/start.c b/src/lxc/start.c
> index ffb8d12.
Hi
It looks like conf.c:instanciate_veth() was rewritten; the result is
that lxc-start is failing when setting up the veth pair MTUs. I rewrote
a very small section of the code and it seems to be working fine now:
1) Move the following block (unchanged) before the block that's
getting/setting the