Hi,
I use lxc-usernsexec to simulate root (and other users) for a non-root
user.
lxc-usernsexec -m b:0:100000:65536
That then chroots into an overlayfs mounted using fuse.
The lowerdir is a mounted squashfs, the upperdir is a regular directory.
squashfuse rootimg.sqfs lower
fuse-overlayfs -o lowerdir=lower,upperdir=upper,workdir=work mount
This is all working nicely, and much faster than extracting a tarfile to
generate the lowerdir which is what I used to do.
But I have to jump through hoops to generate the lower sqfs.