Since we've started using the gpt partitioning scheme, I've been wondering if we can use more of the UAPI discoverable partitions specification1. I've had success with setting up swap partitions with it: systemd has machinery to automatically discover a swap partition and turn it on (swapon) during userspace init. This has worked for me.
The genimage.cfg that I'm using over on the c3-&-gps-remaster branch tags the root partition using the Linux root (ARM) type uuid. I haven't tested this out, but it should allow for automatic discovery of the root partition. Currently, I'm telling the kernel which blockdev the root partition is on in the bootloader configuration through a kernel command line parameter.
partition rootfs {
partition-type-uuid = "root-arm"
partition-uuid = "00000000-0000-0000-0000-000000000000"
image = "rootfs.ext4"
}
Since we've started using the
gptpartitioning scheme, I've been wondering if we can use more of the UAPI discoverable partitions specification1. I've had success with setting up swap partitions with it: systemd has machinery to automatically discover a swap partition and turn it on (swapon) during userspace init. This has worked for me.The
genimage.cfgthat I'm using over on thec3-&-gps-remasterbranch tags the root partition using the Linux root (ARM) type uuid. I haven't tested this out, but it should allow for automatic discovery of the root partition. Currently, I'm telling the kernel which blockdev the root partition is on in the bootloader configuration through a kernel command line parameter.Footnotes
https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#suggested-mode-of-operation ↩