]> git.proxmox.com Git - pve-container.git/commitdiff
post-stop-hook: unmount before deactivating storages
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 12 Dec 2019 10:36:03 +0000 (11:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Dec 2019 11:30:42 +0000 (12:30 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc-pve-poststop-hook

index 438836c0672f3080fc27ae06ebb613922051f8ec..2a83872246c3edc668f7a12fd6391437d2d47716 100755 (executable)
@@ -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) {