Passing edid binary to cmdline parameters Ubuntu Core 22

Hello there, I am trying to add an edid binary call to my cmd line parameters in our custom gadget image. I have these changes:

  • in the gadget-amd64.yaml
kernel-cmdline:
  allow:
    - snapd.debug=1
  append:
    - drm.edid_firmware=eDP-1:linux_edid.bin
  • In gadget snapcraft.yaml
...
parts:
  edid-file:
    plugin: dump
    source: edid
...
layout:
  /lib/firmware/linux_edid.bin:
    symlink: $SNAP/linux_edid.bin
  • I copied the linux_edid.bin to ./edid directory in the gadget project.

The reason I put it in /lib/firmware because in the instructions they told me to put it there, and this is confirmed by the edid_firmware section on this page: https://www.kernel.org/doc/html/v5.15/admin-guide/edid.html.

However, if I try to build this snapcraft is not happy. The error: Cannot pack snap: error: cannot validate snap "salto-pc": layout "/lib/firmware/linux_edid.bin" in an off-limits area

Then where do I put the edid?

Using snapcraft 8.4.1