diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index adbbf6a70..0aff7d759 100644 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -294,9 +294,9 @@ sub copycd foreach(@cpiopid){ kill 2, $_; } - if ($mntpath) { + if ($path) { chdir("/"); - system("umount $mntpath"); + system("umount $path"); } }; my $kid; diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 5351d6a1d..d771046f3 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -4210,9 +4210,9 @@ sub copycd { foreach(@cpiopid){ kill 2, $_; } - if ($mntpath) { + if ($path) { chdir("/"); - system("umount $mntpath"); + system("umount $path"); } }; my $KID; diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 30590d879..e5fafc128 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -560,9 +560,9 @@ sub copycd foreach(@cpiopid){ kill 2, $_; } - if ($mntpath) { + if ($path) { chdir("/"); - system("umount $mntpath"); + system("umount $path"); } }; my $kid;