Skip to content

EFI backend partitions by UUID #2

@ejoerns

Description

@ejoerns

Saw your question on #barebox about using EFI with barebox state.

A working example for using a fixed partition as storage backend for state I have is:

state: state {
        magic = <0x3f2ba231>;
        backend-type = "raw";
        backend = <&state_part>;
        backend-stridesize = <4096>;
        #address-cells = <1>;
        #size-cells = <1>;

        [...]
 }

partitions {
        compatible = "fixed-partitions";
        #address-cells = <1>;
        #size-cells = <1>;

        state_part: state {
                partuuid = "14367da7-c518-499f-9aad-e1f366692363";
        };
};

The partition in my case is crated with a script calling sfdisk:

sfdisk -X gpt /dev/sdX << EOF
start=2048,size=18432,type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B,bootable
start=20480,size=2048,uuid=14367da7-c518-499f-9aad-e1f366692363
[...]
EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions