-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:
parent
c7c12b5dcb
commit
2c3bb55e80
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user