From 8762d8b7c1ba0e1760002b07814d9ec097fa7d0d Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 7 Jul 2011 20:38:17 +0000 Subject: [PATCH] supprt genimage plugin for urbunto, debian and fedora12 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10039 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/genimage | 7 +++++++ xCAT-client/pods/man1/genimage.1.pod | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/genimage b/xCAT-client/bin/genimage index 3b3dfa99d..8d77a8ceb 100755 --- a/xCAT-client/bin/genimage +++ b/xCAT-client/bin/genimage @@ -37,6 +37,7 @@ my $rootlimit; my $tmplimit; my $krpmver; my $kerneldir; +my $mode; #----------------------------------------------------------------------------- @@ -72,6 +73,7 @@ if (!GetOptions( 't=s' => \$tmplimit, 'k=s' => \$kernel, 'g=s' => \$krpmver, + 'm=s' => \$mode, 'permission=s' => \$permission, 'kerneldir=s' => \$kerneldir, 'h|help' => \$help, @@ -362,6 +364,11 @@ if ($krpmver) { push @arg, "$krpmver"; } +if ($mode) { + push @arg, "-m"; + push @arg, "$mode"; +} + if ($kerneldir) { push @arg, "--kerneldir"; push @arg, "$kerneldir"; diff --git a/xCAT-client/pods/man1/genimage.1.pod b/xCAT-client/pods/man1/genimage.1.pod index 1de1a74a2..0d4ec40b5 100644 --- a/xCAT-client/pods/man1/genimage.1.pod +++ b/xCAT-client/pods/man1/genimage.1.pod @@ -4,9 +4,9 @@ B - Generates a stateless image to be used for a diskless install. =head1 SYNOPSIS -B B<-o> I B<-p> I [B<-i> I] [B<-n> I] [B<-l> I] [B<-r> I] [B<-k> I] [B<-g> I] [B<--permission> I] +B B<-o> I B<-p> I [B<-i> I] [B<-n> I] [B<-l> I] [B<-r> I] [B<-k> I] [B<-g> I] [B<-m> statelite] [B<--permission> I] -B [B<-o> I] [B<-l> I] [B<-i> I] [B<-n> I] [B<-r> I] [B<-k> I] [B<-g> I] imagename +B [B<-o> I] [B<-l> I] [B<-i> I] [B<-n> I] [B<-r> I] [B<-k> I] [B<-g> I] [B<-m> statelite] imagename B [B<-h> | B<--help> | B<-v> | B<--version>] @@ -92,6 +92,11 @@ in the install image. This flag is for SLES only. Use this flag to specify the rpm version for kernel packages in the image. It must be present if -k flag is specified in the command for SLES. +=item B<-m> statelite + +This flag is for Ubuntu, Debian and Fedora12 only. Use this flag to specify if you want to generate statelite image. The default is to generate stateless image for these three operating systems. For others, this flag is invalid because both stateless and statelite images will be generated with this command. + + =item B<-v|--version> Display version.