From 3a0a1bb1d755675b8c988322f1c2c34b7c11e5f5 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 24 Apr 2008 13:31:45 +0000 Subject: [PATCH] -Undo presumably accidental removal of helpful error message from packimage done in revision 1175 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1181 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/packimage.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server-2.0/lib/xcat/plugins/packimage.pm b/xCAT-server-2.0/lib/xcat/plugins/packimage.pm index 71694aa65..708a2775e 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/packimage.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/packimage.pm @@ -117,6 +117,10 @@ 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]});