-Resolve bug 1959592, packimage temp directory is now reaped

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-07 19:48:09 +00:00
parent c7c12b5dcb
commit 2c3bb55e80

View File

@ -142,6 +142,11 @@ sub process_request {
$callback->({error=>["mksquashfs could not be run successfully"],errorcode=>[1]});
return;
}
$rc = system("rm -rf $temppath");
if ($rc) {
$callback->({error=>["Failed to clean up temp space"],errorcode=>[1]});
return;
}
chmod(0644,"../rootimg.sfs");
}
chdir($oldpath);