From: Wolfgang Bumiller Date: Thu, 19 Nov 2015 10:56:02 +0000 (+0100) Subject: use the unmount-namespace stop hook X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c0681d663238486cfaeb3a9f81376caa75b94df1;p=pve-container.git use the unmount-namespace stop hook --- diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index a85213f..6775fe3 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) {