From 958a915660d2cf896f06c8b458d5526abb844baf Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 24 Jun 2008 16:56:09 +0000 Subject: [PATCH] Add "-b" option for mknimimage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 905af9578..e318a78cc 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -537,6 +537,7 @@ sub mknimimage # parse the options Getopt::Long::Configure("no_pass_through"); if(!GetOptions( + 'b=s' => \$::SYSB, 'f|force' => \$::FORCE, 'h|help' => \$::HELP, 's=s' => \$::opt_s, @@ -1573,10 +1574,10 @@ sub mk_mksysb return undef; } - } elsif ($::opt_s) { + } elsif ($::opt_b) { # def res with existing mksysb image - my $mkcmd = "/usr/sbin/nim -o define -t mksysb -a server=master -a location=$::opt_s $mksysb_name 2>&1"; + my $mkcmd = "/usr/sbin/nim -o define -t mksysb -a server=master -a location=$::opt_b $mksysb_name 2>&1"; my $output = xCAT::Utils->runcmd("$mkcmd", -1); if ($::RUNCMD_RC != 0) { my $rsp; @@ -3135,7 +3136,7 @@ sub mknimimage_usage push @{$rsp->{data}}, " Usage: "; push @{$rsp->{data}}, "\tmknimimage [-h | --help]"; push @{$rsp->{data}}, "or"; - push @{$rsp->{data}}, "\tmknimimage [-V] [-f|--force] [-l ] -s [image_source] \n\t\t[-i current_image] [-t nimtype] [-m nimmethod] [-n mksysbnode]\n\t\tosimage_name [attr=val [attr=val ...]]\n"; + push @{$rsp->{data}}, "\tmknimimage [-V] [-f|--force] [-l ] -s [image_source] \n\t\t[-i current_image] [-t nimtype] [-m nimmethod] [-n mksysbnode]\n\t\t[-b mksysbfile] osimage_name [attr=val [attr=val ...]]\n"; xCAT::MsgUtils->message("I", $rsp, $callback); return 0; }