Gadget.yaml fieldsΒΆ
The available fields of the gadget.yaml file are defined in
snapd/gadget/gadget.go.
A description is provided in the Gadget.yaml section of the Gadget snaps specification.
Here is a list the relevant part of the field hierarchy as of Snapd 2.67:
-volumes,omitempty (map[string]*Volume)
|-<Key> (string)
| <Value> (*Volume)
| |-schema (string) enum:emmc,gpt,mbr
| |-bootloader (string) enum:android-boot,grub,lk,piboot
| |-id (string)
| |-structure ([]VolumeStructure)
| | |-name (string)
| | |-type (string)
| | |-filesystem (string) enum:ext4,vfat,vfat-16,vat-32
| | |-filesystem-label (string)
| | |-min-size (Size)
| | |-size (Size)
| | |-offset (*Offset)
| | |-offset-write (*RelativeOffset)
| | | |-relative-to (string)
| | | |-offset (Offset)
| | |-role (string) enum:system-boot,system-data,system-seed,system-seed-null,system-save
| | |-id (string)
| | |-content ([]VolumeContent)
| | | |-source (string)
| | | |-tar