Give error when mksquashfs fails

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-02-28 02:11:40 +00:00
parent de6dbeab03
commit 2f7cd346a8

View File

@ -93,7 +93,11 @@ sub process_request {
} elsif ($arch =~ /ppc/) {
$flags="-be";
}
system("mksquashfs $temppath ../rootimg.sfs $flags");
my $rc = system("mksquashfs $temppath ../rootimg.sfs $flags");
if ($rc) {
$callback->({error=>["mksquashfs could not be run successfully"],errorcode=>[1]});
return;
}
chmod(0644,"../rootimg.sfs");
}
chdir($oldpath);