...
- Unpack the files from the squashfs image. This will create a sub-directory squashfs-root, which contains the OS files. All files under this directory are own by you, not root.
/bin/unsquashfs \ -no-xattrs /tmp/centos_centos7.7.1908.sqsh
...
singularity shell /tmp/squashfs-root
singularity exec \ -w --no-home /tmp/squashfs-root yum install git
...