fixed bug 3683. In rhels 6.x, the mksquashfs doesn't have the -le and -be options.
This commit is contained in:
parent
82157e991e
commit
6c9234df79
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user