]> git.proxmox.com Git - pve-container.git/commitdiff
mount_all: unly call umount on error
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 10:04:50 +0000 (12:04 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 10:04:50 +0000 (12:04 +0200)
src/PVE/LXC.pm

index 560f7ead7e4b61d32ad5f83065df730ab2ccd313..32816a14dceac572ccffa9ee7939ea12db873cb1 100644 (file)
@@ -1982,8 +1982,6 @@ sub mount_all {
     if (my $err = $@) {
        warn "mounting container failed - $err";
        umount_all($vmid, $storage_cfg, $conf, 1);
-    } else {
-       umount_all($vmid, $storage_cfg, $conf, 0);
     }
 
     return $rootdir;