diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index d0434eb06..c4c91149c 100755 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -108,6 +108,10 @@ sub process_request { "help|h" => \$help, "version|v" => \$version ); + if ($arch or $osver or $profile) { + $callback->({ error => ["-o, -p and -a options are obsoleted, please use 'packimage ' instead."], errorcode => [1] }); + return 1; + } if ($version) { my $version = xCAT::Utils->Version(); $callback->({ info => [$version] });