packimage - Packs the stateless image from the chroot file system.
packimage [-h| --help]
packimage [-v| --version]
packimage [-m|--method cpio|tar|squashfs] [-c|--compress gzip|pigz|xz] [--nosyncfiles] imagename
Packs the stateless image from the chroot file system into a file to be sent to the node for a diskless boot.
Note: For an osimage that is deployed on a cluster, running packimage will overwrite the existing rootimage file and be unavailable to the compute nodes while packimage is running.
imagename specifies the name of a OS image definition to be used. The specification for the image is stored in the osimage table and linuximage table.
Display usage message.
Command Version.
Archive Method (cpio, tar, squashfs (requires overlayFS or aufs modules during provisioning), default is cpio)
Compress Method (pigz, gzip, xz, default is pigz/gzip)
Bypass of syncfiles requested, will not sync files to root image directory
0 The command completed successfully.
1 An error has occurred.
1. To pack the osimage 'rhels7.1-x86_64-netboot-compute':
packimage rhels7.1-x86_64-netboot-compute
2. To pack the osimage 'rhels7.1-x86_64-netboot-compute' with "tar" to archive and "pigz" to compress:
packimage -m tar -c pigz rhels7.1-x86_64-netboot-compute
3. To pack the osimage 'rhels7.1-x86_64-netboot-compute' without syncing files:
packimage --nosyncfiles rhels7.1-x86_64-netboot-compute
/opt/xcat/sbin/packimage
This command is part of the xCAT software product.