From 9260b9728232eab76e546808c92fa5dcb36ee786 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 16 Oct 2012 11:22:53 +0000 Subject: [PATCH] set the MD5 Digest value of iso's fullpath as the default mount point of the iso git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 4 ++-- xCAT-server/lib/xcat/plugins/debian.pm | 4 ++-- xCAT-server/lib/xcat/plugins/esx.pm | 4 ++-- xCAT-server/lib/xcat/plugins/rhevm.pm | 4 ++-- xCAT-server/lib/xcat/plugins/sles.pm | 4 ++-- xCAT-server/lib/xcat/plugins/windows.pm | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) 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;