limited uuid options for ubuntu-boot when using gpt part table

Bug #1925059 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
Samuele Pedroni

Bug Description

If gpt part schema is used, there is limited list of permitted UUIDs which can be used for ubuntu-* partitions.
At the moment UUIDs for swap and ext4 are only supported.
Ideally we should be able to choose also C12A7328-F81F-11D2-BA4B-00A0C93EC93B
for vfat, which might be preferred fs with u-boot bootloader.

Device with following gadget.yaml fails to boot as snapd refuses to recreated ubuntu-boot partition with vfat

device-tree-origin: kernel
volumes:
  emmc:
    schema: gpt
    bootloader: u-boot
    structure:
      - name: ubuntu-seed
        role: system-seed
        filesystem: ext4
        type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
        size: 500M
      - name: ubuntu-boot
        role: system-boot
        filesystem: vfat
        type: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
        size: 200M
        content:
          - source: boot.sel
            target: uboot/ubuntu/boot.sel
      - name: ubuntu-save
        role: system-save
        filesystem: ext4
        type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
        size: 16M
      - name: ubuntu-data
        role: system-data
        filesystem: ext4
        type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
        size: 2GB

Changed in snapd:
assignee: nobody → Samuele Pedroni (pedronis)
Revision history for this message
Samuele Pedroni (pedronis) wrote :

I don't see why we would use the EFI System Partion GUID with u-boot?

What we can allow is EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 , which is windows basic data partition I suppose.

Revision history for this message
Ian Johnson (anonymouse67) wrote :

I don't think we need to use C12A7328-F81F-11D2-BA4B-00A0C93EC93B with u-boot, since the partition being created is not an EFI system partition, for reference the pc gadget has this for ubuntu-seed because while ubuntu-seed is vfat, it is also the EFI system partition that gets booted off, i.e. ubuntu-seed has grub and shim and friends on it so it needs to be the EFI system partition type, but there is no such constraint on u-boot AFAICT unless somehow u-boot is being used with EFI somehow

Revision history for this message
Ondrej Kubik (ondrak) wrote :

Yes, Windows data partition is the one I'd expect to be allowed.
Agree no need for EFI type, as this is ubuntu-seed.

Revision history for this message
Samuele Pedroni (pedronis) wrote :
Changed in snapd:
status: New → Fix Committed
Changed in snapd:
milestone: none → 2.51
Changed in snapd:
status: Fix Committed → Fix Released
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.