[Lxc-users] make lxc-ps work with separate mtab
Daniel Lezcano
daniel.lezcano at free.fr
Thu Aug 4 08:37:36 UTC 2011
On 07/28/2011 08:19 PM, Serge E. Hallyn wrote:
> It breaks with multiple cgroup mounts unless /etc/mtab is linked
> to /proc/self/mounts (which it is not in Ubuntu, for instance).
>
> Signed-off-by: Serge Hallyn <serge.hallyn at canonical.com>
Hi Serge,
not sure, you got the email but I was not able to apply this one.
The reject file contains:
--- src/lxc/lxc-ps.in 2011-07-28 11:29:35.003183756 -0500
+++ src/lxc/lxc-ps.in 2011-07-28 11:31:37.973180821 -0500
@@ -121,11 +127,7 @@
my $container = <LXC>;
close LXC;
chomp($container);
- if ($container =~ m/[:,]ns[:,]/o) {
- $container =~ s/.*:\///o;
- } else {
- $container ='';
- }
+ $container =~ s/.*:\///o;
return $container;
}
More information about the lxc-users
mailing list