** Description changed:

  Snapd will soon support to have DTBs in the kernel snap that are
  automatically installed on kernel refreshes. To support this, please add
  the following file to the pi-kernel:
  
  This should also add "assumes: [kernel-assets]" to the meta/snap.yaml so
  that the updated kernel/gadget are only used by a snap version that
  understand this, see https://github.com/snapcore/snapd/pull/9999
  
  $ cat meta/kernel.yaml
  assets:
    pidtbs:
      update: true
      content:
-     - dtbs/broadcom/
-     - dtbs/overlays/
+     - dtbs/
  
- This will allow the gadget to select DTBs from the kernel. The gadget
- needs to be updated to have all dtb files removed. And the gadget.yaml
- needs to change to something like
+ This will allow the gadget to select DTBs from the kernel. The arm64
+ gadget needs to be updated to have all dtb files removed. And the
+ gadget.yaml needs to change to something like
  
  $ head -20 meta/gadget.yaml
  device-tree: bcm2709-rpi-3-b-plus
  volumes:
    pi:
      schema: mbr
      bootloader: u-boot
      structure:
        - name: ubuntu-seed
          role: system-seed
          filesystem: vfat
          type: 0C
          size: 1200M
          content:
            - source: $kernel:pidtbs/dtbs/broadcom/
              target: /
            - source: $kernel:pidtbs/dtbs/overlays/
              target: /overlays
            - source: boot-assets/
              target: /
        - name: ubuntu-boot
          role: system-boot
  ...
  
+ 
+ AFAICT the armhf needs to be updated differently because the layout
+ of the dtbs folder is different in the armhf kernel:
+ 
+ $ head -20 meta/gadget.yaml
+ volumes:
+   pi:
+     schema: mbr
+     bootloader: u-boot
+     structure:
+       - name: ubuntu-seed
+         role: system-seed
+         filesystem: vfat
+         type: 0C
+         size: 1200M
+         content:
+           - source: $kernel:pidtbs/dtbs/
+             target: /
+           - source: boot-assets/
+             target: /
+       - name: ubuntu-boot
+         role: system-boot
+ 
+ 
+ 
  If those could be provided in a snap branch that would be *amazing*

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1907056

Title:
  Please add meta/kernel.yaml

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1907056/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to