diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index a504b1c8d..46016912f 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -4251,9 +4251,13 @@ sub rsync_to_image my $synccmd = ""; if ($^O eq 'aix') { - $synccmd = "/usr/bin/rsync -Lupotz "; + if (-e ("/usr/bin/rsync")) { + $synccmd = "/usr/bin/rsync -Lupotz "; + } else { + $synccmd = "/usr/local/bin/rsync -Lupotz "; + } } - else + else # linux { $synccmd = "/usr/bin/rsync -Lupotz "; }