Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com>
---
 src/lxc-pve-poststop-hook | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc-pve-poststop-hook b/src/lxc-pve-poststop-hook
index 438836c..2a83872 100755
--- a/src/lxc-pve-poststop-hook
+++ b/src/lxc-pve-poststop-hook
@@ -23,10 +23,10 @@ PVE::LXC::Tools::lxc_hook('post-stop', 'lxc', sub {
 
     my $storage_cfg = PVE::Storage::config();
 
-    PVE::LXC::vm_stop_cleanup($storage_cfg, $vmid, $conf);
-
     PVE::Tools::run_command(['umount', '--recursive', $vars->{ROOTFS_PATH}]);
 
+    PVE::LXC::vm_stop_cleanup($storage_cfg, $vmid, $conf);
+
     # Because netlink is not a reliable protocol it can happen that lxc's
     # link-deletion messages get lost (or end up being too early?)
     for my $k (keys %$conf) {
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to