The previous code was creating a temporary directory /tmp/lxc- to
mount the rootfs, this is needed to separate the filesystem for the
pivot_root, when the rootfs and the host fs are the same.
According to the pivot_root man page:
"new_root and put_old must not be on the same file system as the
From: Daniel Lezcano
Mindless changes by removing whitespace.
Signed-off-by: Daniel Lezcano
---
configure.ac | 14 +++---
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4c8c50f..c6cac11 100644
--- a/configure.ac
+++ b/configure.ac
@@
From: Daniel Lezcano
Add a configure option to set a mount point path when using a rootfs,
that will replace the actual behavior which creates uneeded /tmp/lxc**
directories.
Signed-off-by: Daniel Lezcano
---
configure.ac |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff
From: Daniel Lezcano
Define lxc.rootfs.mount option in order to override the default
mount point for rootfs.
Signed-off-by: Daniel Lezcano
---
src/lxc/conf.h|1 +
src/lxc/confile.c | 18 ++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/lxc/conf.h
From: Daniel Lezcano
As we defined a path where to mount the rootfs, we can use without
ambiguity because it is defined by default at compile time or by the
configuration.
Signed-off-by: Daniel Lezcano
---
src/lxc/conf.c | 13 -
1 files changed, 8 insertions(+), 5 deletions(-)
d
From: Daniel Lezcano
We have pivot_dir and rootfs defined in lxc_conf structure.
Let's encapsulate them in a rootfs structure.
Signed-off-by: Daniel Lezcano
---
src/lxc/conf.c| 32 +---
src/lxc/conf.h| 14 --
src/lxc/confile.c |8
Hi,
I'm playing with containers under debian (squeeze, 2.6.33.3) with the
lxc tools.
I'm really happy about all the features (attach veth on bridge, filter
with iptables inside the containers, etc ...), and i was thinking to
replace some of our vservers (and maybe some of our kvm) with this so
The removal does not account for possible leading path components that
were also created during creation of pivotdir.
Signed-off-by: Ferenc Wagner
---
src/lxc/conf.c |6 --
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 2b8ddf4..6d9b6
Signed-off-by: Ferenc Wagner
---
src/lxc/conf.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
index 6d9b6b0..4d0223e 100644
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -468,7 +468,7 @@ static int setup_rootfs_pivot_root(const char *ro
Daniel Lezcano writes:
> Ferenc Wagner wrote:
>
>> Daniel Lezcano writes:
>>
>>> Ferenc Wagner wrote:
>>>
Actually, I'm not sure you can fully solve this. If rootfs is a
separate file system, this is only much ado about nothing. If rootfs
isn't a separate filesystem, you
Jean-Philippe Menil wrote:
> Hi,
>
> I'm playing with containers under debian (squeeze, 2.6.33.3) with the
> lxc tools.
> I'm really happy about all the features (attach veth on bridge, filter
> with iptables inside the containers, etc ...), and i was thinking to
> replace some of our vservers (
Ferenc Wagner wrote:
> Daniel Lezcano writes:
>
>
>> Ferenc Wagner wrote:
>>
>>
>>> Daniel Lezcano writes:
>>>
>>>
Ferenc Wagner wrote:
> Actually, I'm not sure you can fully solve this. If rootfs is a
> separate file system, this is only mu
Ferenc Wagner wrote:
> The removal does not account for possible leading path components that
> were also created during creation of pivotdir.
>
> Signed-off-by: Ferenc Wagner
> ---
>
+1
--
___
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "lxc".
The branch, master has been updated
via 9232212afdad25536afc8d241606e00eac3b0c87 (commit)
via a91d897a7b5ef5ef07ede977
Ferenc Wagner wrote:
> The removal does not account for possible leading path components that
> were also created during creation of pivotdir.
>
> Signed-off-by: Ferenc Wagner
> ---
>
Applied.
--
_
Ferenc Wagner wrote:
> Signed-off-by: Ferenc Wagner
> ---
>
Applied thanks.
--
___
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists
16 matches
Mail list logo