github.com/canonical/ubuntu-image@v0.0.0-20240430122802-2202fe98b290/internal/statemachine/testdata/gadget_tree_piboot/meta/gadget.yaml (about)

     1  volumes:
     2    pi:
     3      schema: mbr
     4      bootloader: piboot
     5      structure:
     6        - name: ubuntu-seed
     7          role: system-seed
     8          filesystem: vfat
     9          type: 0C
    10          size: 1200M
    11          content:
    12            - source: boot-assets/
    13              target: /
    14            - source: cmdline.txt
    15              target: /
    16            - source: config.txt
    17              target: /
    18        - name: ubuntu-boot
    19          role: system-boot
    20          filesystem: vfat
    21          type: 0C
    22          # whats the appropriate size?
    23          size: 750M
    24        # NOTE: ubuntu-save is optional for unencrypted devices like the pi, so
    25        # this structure can be dropped in favor of a different partition for
    26        # users who wish to instead use a different partition, since with MBR we
    27        # are limited to only 4 primary partitions.
    28        # TODO: look into switching over to GPT, the pi bootloader firmware now
    29        #       has support for this
    30        - name: ubuntu-save
    31          role: system-save
    32          filesystem: ext4
    33          type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
    34          size: 16M
    35        - name: ubuntu-data
    36          role: system-data
    37          filesystem: ext4
    38          type: 83,0FC63DAF-8483-4772-8E79-3D69D8477DE4
    39          # XXX: make auto-grow to partition
    40          size: 1500M