From d1bd976a67f867c2ff1420280f4e99b96313304f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 11 Aug 2008 18:36:10 +0000 Subject: [PATCH] -Fix problem where copycds interrupted would not unmount images git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2011 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/anaconda.pm | 1 + xCAT-server/lib/xcat/plugins/sles.pm | 1 + xCAT-server/lib/xcat/plugins/windows.pm | 1 + 3 files changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/anaconda.pm b/xCAT-server/lib/xcat/plugins/anaconda.pm index 2bd36095d..d5e855f69 100644 --- a/xCAT-server/lib/xcat/plugins/anaconda.pm +++ b/xCAT-server/lib/xcat/plugins/anaconda.pm @@ -805,6 +805,7 @@ sub copycd kill 2, $_; } if ($::CDMOUNTPATH) { + chdir("/"); system("umount $::CDMOUNTPATH"); } }; diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 69f952446..29ee72077 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -625,6 +625,7 @@ sub copycd kill 2, $_; } if ($::CDMOUNTPATH) { + chdir("/"); system("umount $::CDMOUNTPATH"); } }; diff --git a/xCAT-server/lib/xcat/plugins/windows.pm b/xCAT-server/lib/xcat/plugins/windows.pm index 2b7691a6e..fa0d1c773 100644 --- a/xCAT-server/lib/xcat/plugins/windows.pm +++ b/xCAT-server/lib/xcat/plugins/windows.pm @@ -301,6 +301,7 @@ sub copycd kill 2, $_; } if ($::CDMOUNTPATH) { + chdir("/"); system("umount $::CDMOUNTPATH"); } };