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.