diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index addda2a66..5e648d6e0 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -1494,9 +1494,9 @@ sub copycd foreach(@cpiopid){ kill 2, $_; } - if ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $KID; diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index cce340ff1..adbbf6a70 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 ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $kid; diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 0dcdb67d8..5351d6a1d 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 ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $KID; diff --git a/xCAT-server/lib/xcat/plugins/rhevm.pm b/xCAT-server/lib/xcat/plugins/rhevm.pm index 1d3ed3085..3715dfdcf 100644 --- a/xCAT-server/lib/xcat/plugins/rhevm.pm +++ b/xCAT-server/lib/xcat/plugins/rhevm.pm @@ -453,9 +453,9 @@ sub copycd { foreach(@cpiopid){ kill 2, $_; } - if ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $KID; diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index e466415cd..dcb2af0e0 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -1229,9 +1229,9 @@ sub copycd foreach(@cpiopid){ kill 2, $_; } - if ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $kid; diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 1492df4b9..30590d879 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 ($::CDMOUNTPATH) { + if ($mntpath) { chdir("/"); - system("umount $::CDMOUNTPATH"); + system("umount $mntpath"); } }; my $kid;