Kernel snap and Linux kernel version

I am using 5.4-2.1 based Linux for my custom hardware.
Is it possible to use 5.4 based Linux Kernel version for creating Kernel snap?

sure, you will need the apparmor patches and proper default configs set to have it working, see the two .patch files and the snapcraft.yaml here (this is 5.1 so you will likely need the 5.4 apparmor patch instead, also ignore the firmware bits):

1 Like