]> git.proxmox.com Git - pve-container.git/commitdiff
umount_all: fix previous commit
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 06:12:10 +0000 (08:12 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Sep 2015 06:17:06 +0000 (08:17 +0200)
src/PVE/LXC.pm

index b47c56236b5b19f5eed0dd3073538e102bdf7dc0..560f7ead7e4b61d32ad5f83065df730ab2ccd313 100644 (file)
@@ -1928,11 +1928,11 @@ sub umount_all {
 
        return if !$volid || !$mount;
 
-       $mount_path = "$rootdir/$mount";
+       my $mount_path = "$rootdir/$mount";
 
        # fixme: test if mounted?
        eval {
-           PVE::Tools::run_command(['umount', '-d', $mountpoint_path]);
+           PVE::Tools::run_command(['umount', '-d', $mount_path]);
        };
        if (my $err = $@) {
            if ($noerr) {