From 8ef650485d103ac6d089d928a2101af3101f4e58 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 1 Sep 2015 12:04:50 +0200 Subject: [PATCH] mount_all: unly call umount on error --- src/PVE/LXC.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 560f7ea..32816a1 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -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; -- 2.39.2