diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 7c8b740f6..280c584eb 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -394,7 +394,12 @@ sub process_request { } elsif ($arch =~ /ppc/) { $flags="-be"; } - if (! -x "/sbin/mksquashfs") { + + if( $osver =~ /rhels/ && $osver !~ /rhels5/) { + $flags=""; + } + + if (! -x "/sbin/mksquashfs" && ! -x "/usr/bin/mksquashfs" ) { $callback->({error=>["mksquashfs not found, squashfs-tools rpm should be installed on the management node"],errorcode=>[1]}); return; }