55b479b54f
This adds support for a GPT label type to the partitioning code. This is relatively straight-forward translation of the partition config into a sgparted command-line and subsequent call. A unit test is added based on a working GPT/EFI configuration and the fedora-minimal functional test is updated to build a single-partition GPT based using the new block-device-gpt override element. See notes in the sample configuration files about partition requirements and types. Documentation has been updated. Co-Authored-By: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Change-Id: I6b819a8071389e7e4eb4874ff7750bd192695ff2
32 lines
662 B
YAML
32 lines
662 B
YAML
# A sample config that has GPT/bios and EFI boot partitions
|
|
|
|
- local_loop:
|
|
name: image0
|
|
|
|
- partitioning:
|
|
base: image0
|
|
label: gpt
|
|
partitions:
|
|
- name: ESP
|
|
type: 'EF00'
|
|
size: 8MiB
|
|
mkfs:
|
|
type: vfat
|
|
mount:
|
|
mount_point: /boot/efi
|
|
fstab:
|
|
options: "defaults"
|
|
fsck-passno: 1
|
|
- name: BSP
|
|
type: 'EF02'
|
|
size: 8MiB
|
|
- name: root
|
|
type: '8300'
|
|
size: 100%
|
|
mkfs:
|
|
type: ext4
|
|
mount:
|
|
mount_point: /
|
|
fstab:
|
|
options: "defaults"
|
|
fsck-passno: 1
|