Allow setting GPT partition attributes in gadget.yaml

Bug #2074387 reported by Tobias Heider
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
New
Wishlist
Unassigned

Bug Description

Some devices like for example Google Chromebooks use partition type specific GPT attributes to mark the boot partition. It would be nice if we had support for specifying flags in gadget.yaml to help ubuntu-image generate bootable images on such devices.

I imagine something like:

    structure:
      - name: Boot
        offset: 2048
        type: bare
        flags: 0x11f000000000000
        size: 65536
        content:
          - image: bootloader.bin

Alternatively there are also well-defined flags we might allow setting such as 'Hidden' or 'Read-only' which might make more sense as named constants, maybe something like:

        flags: 0x11f,hidden,ro

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

We have dicussed this in the foundations sync and it has been agreed that this requires a mini-spec with some more details.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.