From 529e858d8423ea84d2afa9aa938a0d3352eb0554 Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 10 Jul 2009 14:18:46 +0000 Subject: [PATCH] add check if dcp -i chosen on AIX, exit with error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DSHCLI.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 21e351797..70dc7f3f3 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -3984,6 +3984,15 @@ sub parse_and_run_dcp xCAT::DSHCLI->show_dsh_config; return 0; } + + if (defined($options{'rootimg'})) { + if (xCAT::Utils->isAIX()) { + my $rsp = (); + $rsp->{data}->[0] = "The -i option is not supported on AIX."; + xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1); + return; + } + } if ((!(defined(@$nodes))) && (!(defined($options{'rootimg'})))) { # no nodes and not -i option, error my $rsp = ();