is there any way to install snap packages inside lxc container on Turris Omnia?
I tried to run ubuntu in lxc container and installed snapd there, but installing any snap gives me this error:
sudo snap install nextcloud
error: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount:
/tmp/sanity-mountpoint-549069762: mount failed: Operation not permitted.
After some googling it feels like I have to enable nesting of containers but I can’t figure out how to do it in turris.
PS: I’m aware nextcloud can be installed directly in turris
# snap --version
snap 2.42.1+19.10
snapd 2.42.1+19.10
series 16
ubuntu 19.10
kernel 4.14.162
# sudo snap install powershell --classic
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": mount:
/tmp/sanity-mountpoint-072786794: mount failed: Operation not permitted.
Perhaps this has something to do with the processor’s architecture:
I’d first “check somewhere” how exactly is running snapd inside a container even a supported thing – on any Linux, not only Turris. IIRC nesting of containers doesn’t “just work” yet, at least in default kernels. (To me personally the nesting concept itself seems a bit perverse, but I’m digressing.)
# apt list --installed | grep kmod
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
kmod/eoan-updates,now 26-1ubuntu1.1 armhf [installed]
libkmod2/eoan-updates,now 26-1ubuntu1.1 armhf [installed]
It’s good that somebody updated LXC in OpenWrt, but this is just in OpenWrt master and it will be available in the HBD branch soon and I don’t think that it is a good idea to recommend HBD to anyone without a big warning.