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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 166:52:31 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,529 |