snapd isn’t starting up because squashfs isn’t working. I don’t understand the kernel well enough to make sense out of what Google turns up on this issue.
I’d like to use Snap in a Docker image, based on phusion/baseimage, which in turn is based on ubuntu:18.04. Phusion/baseimage uses the runit init system. When I “apt-get -qy install snapd squashfs-tools” in the docker file, and also set up /etc/service/snapd/run to execute snapd, I get these errors:
helpers.go:146: error trying to compare the snap system key: system-key missing on disk
daemon.go:379: started snapd/2.39.2+18.04 (series 16; classic; devmode) ubuntu/18.04 (amd64) linux/4.9.125-linuxkit.
main.go:123: system does not fully support snapd: cannot mount squashfs image using “squashfs”: mount: /tmp/sanity-mountpoint-588159470: mount failed: Operation not permitted.
Perhaps this will help
“cat /proc/filesystems” returns a lot of stuff, which includes squashfs.
“uname -a” returns
Linux 9416d2a723bf 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
“dpkg --list | grep linux-image” returns nothing
mount test.squashfs /mnt/squash/example
The above two lines complain: “mount: /mnt/squash/example: mount failed: Operation not permitted.”