2008-03-20 13:23:27 +00:00
=head1 NAME
2008-08-02 16:18:07 +00:00
B<packimage> - Packs the stateless image from the chroot file system.
2008-03-20 13:23:27 +00:00
=head1 SYNOPSIS
2008-08-02 16:18:07 +00:00
2008-03-20 13:23:27 +00:00
I<packimage [-h| --help]>
I<packimage [-v| --version]>
2008-03-20 14:45:08 +00:00
I<packimage [-o OS] [ -p profile] [-a architecture] [-m method]>
2008-03-20 13:23:27 +00:00
2009-10-02 23:39:55 +00:00
I<packimage imagename>
2008-03-20 13:23:27 +00:00
=head1 DESCRIPTION
2008-08-02 16:18:07 +00:00
Packs the stateless image from the chroot file system into a file system to be
2008-04-08 18:03:16 +00:00
sent to the node for a diskless install.
2008-08-02 16:18:07 +00:00
The install dir is setup by using "installdir" attribute set in the site table.
The nodetype table "profile" attribute for the node should reflect the profile of the install image.
2008-03-20 13:23:27 +00:00
2009-10-02 23:39:55 +00:00
If no I<imagename> is specified, this command uses the os image definition files from /install/custom/netboot/[os] directory first. If not found, it falls back to the default directory /opt/xcat/share/xcat/netboot/[os].
If a I<imagename> is specified, this command will get all the necessary os image definition files from the I<osimage> and I<linuximage> tables.
=head1 Parameters
2010-09-13 08:45:06 +00:00
I<imagename> specifies the name of a os image definition to be used. The specification for the image is stored in the I<osimage> table and I<linuximage> table.
2008-03-20 13:23:27 +00:00
=head1 OPTIONS
B<-h> Display usage message.
2008-08-02 16:18:07 +00:00
B<-v> Command Version.
2008-03-20 13:23:27 +00:00
2008-08-02 16:18:07 +00:00
B<-o> Operating system (fedora8, rhel5, sles10,etc)
2008-03-20 13:23:27 +00:00
2008-08-02 16:18:07 +00:00
B<-p> Profile (compute,service)
2008-03-20 13:23:27 +00:00
2008-08-02 16:18:07 +00:00
B<-a> Architecture (ppc64,x86_64,etc)
2008-03-20 13:23:27 +00:00
2008-08-02 16:18:07 +00:00
B<-m> Method (default cpio)
2008-03-20 14:45:08 +00:00
2008-03-20 13:23:27 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2009-01-12 18:23:31 +00:00
1. To pack a fedora8 image for a compute node architecture x86_64 and place it in the /install/netboot/fedora8/x86_64/compute/rootimg.gz file enter:
2008-03-20 13:23:27 +00:00
2008-08-02 16:18:07 +00:00
I<packimage -o fedora8 -p compute -a x86_64>
2008-03-20 13:23:27 +00:00
2008-09-12 23:25:21 +00:00
This would use the package information from the /install/custom/netboot/fedora/compute* files first. If not found it uses /opt/xcat/share/xcat/netboot/fedora/compute* files.
2008-03-20 13:23:27 +00:00
=head1 FILES
2008-08-02 16:18:07 +00:00
2008-03-20 13:23:27 +00:00
/opt/xcat/sbin/packimage
=head1 NOTES
This command is part of the xCAT software product.
2008-04-08 18:03:16 +00:00
=head1 SEE ALSO
2008-08-02 16:18:07 +00:00
L<genimage(1)|genimage.1>
2008-03-20 13:23:27 +00:00