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"); } };