-Add error if mksquashfs isn't executable by the xCAT daemon

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1077 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-16 13:06:51 +00:00
parent 6a757d4ce4
commit 3f37606a4d

View File

@ -103,6 +103,11 @@ sub process_request {
} elsif ($arch =~ /ppc/) {
$flags="-be";
}
if (! -x "/sbin/mksquashfs") {
$callback->({error=>["mksquashfs not found, squashfs-tools rpm should be installed on the management node"],errorcode=>[1]});
return;
}
my $rc = system("mksquashfs $temppath ../rootimg.sfs $flags");
if ($rc) {
$callback->({error=>["mksquashfs could not be run successfully"],errorcode=>[1]});