If customizing a pre-built image root archive compressed as a .txz
or other non-SquashFS format, convert the image root to SquashFS and upload the SquashFS archive to S3.
The steps in this section only apply if the image root is not in SquashFS format.
There is a pre-built image that is not currently in SquashFS format.
Locate the image root to be converted to SquashFS.
Images and recipes are uploaded to IMS and S3 via containers.
Uncompress the desired file to a temporary directory.
Replace the TXZ_COMPRESSED_IMAGE
value with the name of the image root being used that was located in the previous step.
ncn-mw# mkdir -p ~/tmp/image-root
ncn-mw# cd ~/tmp/
ncn-mw# tar xvf TXZ_COMPRESSED_IMAGE -C image-root
Recompress the image root with SquashFS.
ncn-mw# mksquashfs image-root IMAGE_NAME.squashfs