From 648140c6adc1c14f584c4a80b1ab4395a036a0fe Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 17 Oct 2012 08:34:33 +0000 Subject: [PATCH] set the MD5 Digest value of iso's fullpath as the default mount point of the iso,correct the code to umount $path in SIG{INT} git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/debian.pm | 4 ++-- xCAT-server/lib/xcat/plugins/esx.pm | 4 ++-- xCAT-server/lib/xcat/plugins/windows.pm | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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;