more clarification on -p flag for imgimport and imgexport

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2010-09-10 15:43:39 +00:00
parent c648a14178
commit 890eb4b0eb
2 changed files with 13 additions and 11 deletions

View File

@ -40,22 +40,22 @@ For statelite:
where x is the name of the profile.
Any files specified by the -e flag will also be exported. If -p flag is specified, the postscripts and the postbootscripts for the given node will be exported.
Any files specified by the -e flag will also be exported. If -p flag is specified, the names of the postscripts and the postbootscripts for the given node will be exported. The postscripts themsleves need to be manualy exported using -e flag.
=head1 OPTIONS
B<-e|--extra> I<srcfile:destdir> Pack up extra files. If I<destdir> is omitted, the destination directory will be the same as the source directory.
B<-h|--help> Display usage message.
B<-h|--help> Display usage message.
B<-p|--postscripts> I<node_name> Get the postscripts for the given node and pack it into the image.
B<-p|--postscripts> I<node_name> Get the names of the postscripts and postbootscripts for the given node and pack them into the image.
B<-v|--verbose> Verbose output.
B<-v|--verbose> Verbose output.
I<image_name> The name of the image. Use I<lsdef -t> osimage to find out all the image names.
I<image_name> The name of the image. Use I<lsdef -t> osimage to find out all the image names.
I<destination> The output bundle file name.
I<destination> The output bundle file name.
=head1 RETURN VALUE
@ -78,11 +78,11 @@ B<imgexport Default_Stateless_1265981465 foo.tgz -e /install/postscripts/myscrip
In addition to all the default files, this will export I</install/postscripts/myscript1> and the whole directory I</tmp/dir> into the file called foo.tgz. And when imgimport is called I</install/postscripts/myscript1> will be copied into the same directory and I</tmp/mydir> will be copied to I</usr/mydir>.
3. To include postscripts with your image:
3. To include postscript with your image:
B<imgexport Default_Stateless_1265981465 foo.tgz -p node1>
B<imgexport Default_Stateless_1265981465 foo.tgz -p node1 -e /install/postscripts/myscript1>
The I<postscripts> and the I<postbootscripts> specified in the I<postscripts> table for node1 will be exported into the image.
The I<postscripts> and the I<postbootscripts> names specified in the I<postscripts> table for node1 will be exported into the image. The postscript I<myscript1> will also be exported.
=head1 FILES

View File

@ -40,7 +40,7 @@ where x is the profile name.
Any extra files, included by --extra flag in the imgexport command, will also be copied to the appropriate directories.
If -p flag is specified, the I<postscripts> table will be updated with the postscripts and the postbootscripts from the image for the nodes given by this flag.
If -p flag is specified, the I<postscripts> table will be updated with the postscripts and the postbootscripts names from the image for the nodes given by this flag.
If -f flag is not specified, all the files will be copied to the same directories as the source. If it is specified, the old profile name x will be changed to the new and the files will be copied to the appropriate directores for the new profiles. For example, I</opt/xcat/share/xcat/netboot/sles/x.pkglist> will be copied to I</install/custom/netboot/sles/compute_new.pkglist> and I</install/netboot/sles11/ppc64/x/kernel> will be copied to I</install/netboot/sles11/ppc64/compute_new/kernel>. This flag is commonly used when you want to copy the image on the same xCAT mn so you can make modification on the new one.
@ -85,10 +85,12 @@ B<-v|--verbose> Verbose output.
I<imgimport foo.gz>
2. Import the image with postscripts
2. Import the image with postscript names.
I<imgimport foo.gz -p node1,node2>
The I<postscripts> table will be updated with the name of the I<postscripts> and the I<postbootscripts> for node1 and node2.
3. Import the image with a new profile name