[pve-devel] [PATCH pve-container] use the unmount-namespace stop hook

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Nov 19 11:56:02 CET 2015


---
 src/PVE/LXC.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index dd2e7f4..a58697d 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1114,6 +1114,7 @@ sub update_lxc_config {
     $mountpoint->{mp} = '/';
 
     $raw .= "lxc.rootfs = $dir/rootfs\n";
+    $raw .= "lxc.hook.stop = /usr/lib/x86_64-linux-gnu/lxc/hooks/unmount-namespace\n";
 
     my $netcount = 0;
     foreach my $k (keys %$conf) {
-- 
2.1.4





More information about the pve-devel mailing list