Skip to content

Investigate use of discoverable partitions #85

Description

@CullenSharp

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"
  }

Footnotes

  1. https://uapi-group.org/specifications/specs/discoverable_partitions_specification/#suggested-mode-of-operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions