On fedora 41 after installing snapd, I have this common error:
$ sudo snap install hello-world
error: system does not fully support snapd: cannot mount squashfs image using “squashfs”: -----
mount: /tmp/syscheck-mountpoint-4022279374: wrong fs type, bad option, bad superblock on
/dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
Can you confirm that squashfs is supported by the kernel (run grep squashfs /proc/filesystem)? Make sure that kernel-modules package matches your running kernel (eg. not not the one for the debug kernel).
Are there any particular selinux denials that would suggest a problem with the policy?
Right, so the kernel does not support squashfs apparently. IIRC kernel-modules should add that. Make sure that the package is installed. The snapd package already declares correct dependency, but given that https://bugzilla.redhat.com/show_bug.cgi?id=1652823 isn’t fixed it’s likely that kernel-modules-*-debug got installed along with a debug kernel. Something you likely do not want. You’ll need to install kernel-modules-extra manually.
[use@fedora ~]$ sudo modprobe squashfs
[malcolm@fedora ~]$ sudo snap install hello-word --edge
error: system does not fully support snapd: cannot mount squashfs image using "squashfs": -----
mount: /tmp/syscheck-mountpoint-1356092510: wrong fs type, bad option, bad superblock on
/dev/loop0, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
-----
I’ve just built an update for F41 and rawhide. The patch is in master so it’s also going to be in the next upstream release. You can grab the F41 update from - FEDORA-2024-27b46a426a — bugfix update for snapd — Fedora Updates System - feedback is welcome. I’m at a conference and have limited time to look at this more than just rebuilding with a patch.