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.
This procedure can be run on any master or worker NCN.
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.
mkdir -p ~/tmp/image-root
cd ~/tmp/
tar xvf TXZ_COMPRESSED_IMAGE -C image-root
Recompress the image root with SquashFS.
mksquashfs image-root IMAGE_NAME.squashfs