]> git.proxmox.com Git - pve-container.git/commitdiff
use the unmount-namespace stop hook
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 19 Nov 2015 10:56:02 +0000 (11:56 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 20 Nov 2015 06:14:01 +0000 (07:14 +0100)
src/PVE/LXC.pm

index a85213f31f0647d9619f3836d240a767b35f005e..6775fe3fdd8f93c909aa15f9fe496656c3acf8e1 100644 (file)
@@ -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) {