Using snapd with an old kernel

Hi,

TLDR; Can I disable seccomp? How can I manually load profiles and see what breaks?

We use a rather old kernel (4.9 to be exact, for reasons ™). When I tried to boot Ubuntu 22.04 with this old kernel, I could no longer boot into Gnome (current setup is Ubuntu 18.04 with this kernel, works like a charm). The error that led me to believe it has something to do with seccomp:

systemd[725]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
snapd-desktop-integration.snapd-desktop-integration[759]: cannot load program:
snapd-desktop-integration.snapd-desktop-integration[759]: : Invalid argument
systemd[725]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Main process exited, code=exited, status=1/FAILURE

Apparmor is disabled (assuming kernel param apparmor=0 still does something).

Thanks for any pointers on where to dig further!

Christoph

I found out that no UI had nothing to do with snaps, but a new driver inside Mesa for Intel. By setting MESA_LOADER_DRIVER_OVERRIDE=i965 in /etc/environment gnome starts up.

However, I still cannot use the firefox snap without switching it to devmode. Does devmode persist during updates?

devmode disables automatic updates … you will need to manually refresh then anyway