2012-10-23 12:02:39 +00:00
=head1 NAME
2013-10-12 16:47:49 +00:00
B<addkitcomp> - Assign Kit components to an xCAT osimage.
2012-10-23 12:02:39 +00:00
=head1 SYNOPSIS
2013-10-12 16:47:49 +00:00
B<addkitcomp> [B<-?>|B<-h>|B<--help>] [B<-v>|B<--version>]
2012-10-23 12:02:39 +00:00
2013-10-12 16:47:49 +00:00
B<addkitcomp> [B<-V>|B<--verbose>] [B<-a>|B<--adddeps>] [B<-f>|B<--force>] [B<-n>|B<--noupgrade>] B<-i> I<osimage> I<kitcompname_list>
2012-10-23 12:02:39 +00:00
=head1 DESCRIPTION
2013-10-12 16:47:49 +00:00
The B<addkitcomp> command will assign kit components to an xCAT osimage. The kit component meta rpm, package rpm and deploy parameters will be added to osimage's otherpkg.pkglist and postbootscripts will be added to osimages's postbootscripts attribute.
Note: The xCAT support for Kits is only available for Linux operating systems.
2012-10-23 12:02:39 +00:00
=head1 OPTIONS
2013-10-12 16:47:49 +00:00
=over 10
2012-10-23 12:02:39 +00:00
2013-10-12 16:47:49 +00:00
=item B<-a|--adddeps>
2012-10-23 12:02:39 +00:00
Assign kitcomponent dependencies to the osimage.
2013-10-12 16:47:49 +00:00
=item B<-h|--help>
2012-10-23 12:02:39 +00:00
Display usage message.
2013-10-12 16:47:49 +00:00
=item B<-V|--verbose>
2012-10-23 12:02:39 +00:00
Verbose mode.
2013-10-12 16:47:49 +00:00
=item B<-v|--version>
Command version.
=item B<-f|--force>
2012-10-23 12:02:39 +00:00
Add kit component to osimage even if there is a mismatch in OS, version, arch, serverrole, or kitcompdeps
2013-10-12 16:47:49 +00:00
=item B<-i> I<osimage>
2012-10-23 12:02:39 +00:00
2013-10-12 16:47:49 +00:00
The osimage name that the kit component is assigning to.
2012-10-23 12:02:39 +00:00
2013-10-12 16:47:49 +00:00
=item B<-n|--noupgrade>
2013-04-02 05:00:41 +00:00
Allow multiple versions of kitcomponent to be installed into the osimage, instead of kitcomponent upgrade
2013-10-12 16:47:49 +00:00
=item B<kitcompname_list>
2012-10-23 12:02:39 +00:00
A comma-delimited list of valid full kit component names or kit component basenames that are to be added to the osimage.
2013-10-12 16:47:49 +00:00
=back
2012-10-23 12:02:39 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
1. To assign a kit component to osimage
addkitcomp -i rhels6.2-ppc64-netboot-compute comp-test1-1.0-1-rhels-6.2-ppc64
Output is similar to:
Assigning kit component comp-test1-1.0-1-rhels-6.2-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Kit components comp-test1-1.0-1-rhels-6.2-ppc64 were added to osimage rhels6.2-ppc64-netboot-compute successfully
2. To assign a kit component to osimage with its dependency.
addkitcomp -a -i rhels6.2-ppc64-netboot-compute comp-test2-1.0-1-rhels-6.2-ppc64
Output is similar to:
Assigning kit component comp-test1-1.0-1-rhels-6.0-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Assigning kit component comp-test2-1.0-1-rhels-6.2-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Kit components comp-test1-1.0-1-rhels-6.0-ppc64,comp-test2-1.0-1-rhels-6.2-ppc64 were added to osimage rhels6.2-ppc64-netboot-compute successfully
3. To assign a kit component to osimage with incompatable osarch, osversion or ostype.
addkitcomp -f -i rhels6.2-ppc64-netboot-compute comp-test1-1.0-1-rhels-6.2-ppc64
Output is similar to:
Assigning kit component comp-test1-1.0-1-rhels-6.2-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Kit components comp-test1-1.0-1-rhels-6.2-ppc64 were added to osimage rhels6.2-ppc64-netboot-compute successfully
2013-04-02 05:00:41 +00:00
4. To assign a new version of kit component to osimage without upgrade.
addkitcomp -n -i rhels6.2-ppc64-netboot-compute comp-test2-1.0-1-rhels-6.2-ppc64
Output is similar to:
Assigning kit component comp-test1-1.0-1-rhels-6.0-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Assigning kit component comp-test2-1.0-1-rhels-6.2-ppc64 to osimage rhels6.2-ppc64-netboot-compute
Kit components comp-test2-1.0-1-rhels-6.2-ppc64 were added to osimage rhels6.2-ppc64-netboot-compute successfully
The result will be:
lsdef -t osimage rhels6.2-ppc64-netboot-compute -i kitcomponents
Object name: rhels6.2-ppc64-netboot-compute
kitcomponents=comp-test2-1.0-0-rhels-6.2-ppc64,comp-test2-1.0-1-rhels-6.2-ppc64
2012-10-23 12:02:39 +00:00
=head1 SEE ALSO
2013-04-10 06:48:34 +00:00
L<lskit(1)|lskit.1>, L<addkit(1)|addkit.1>, L<rmkit(1)|rmkit.1>, L<rmkitcomp(1)|rmkitcomp.1>, L<chkkitcomp(1)|chkkitcomp.1>
2012-10-23 12:02:39 +00:00