[parted-devel] RFC: Set Partition UUID on GPT

Brian C. Lane bcl at redhat.com
Mon Nov 9 21:56:19 GMT 2026


On Mon, Nov 09, 2026 at 04:15:50PM +0100, Arvin Schnell wrote:
> 
> Hi all,
> 
> appended below is a patch that introduces a command to set the
> partition UUID on GPT partition tables (e.g., parted <device> uuid
> <number> <uuid>).
> 
> Motivation:
> 
> - The Discoverable Partitions Specification (DPS): It requires a
>   calculated UUID for the /var partition [1].

Ugh, first time I've noticed that.

> - Reproducible Image Build: Setting explicit partition (and disk)
>   UUIDs is needed for bit-for-bit reproducibility. If needed I can add
>   a command "disk_uuid" that as well.

This is a valid reason, despite my dislike for UUID no longer being
random in a number of use cases :) So we may as well also add the
ability to set the disk UUID so we don't have to come back later and do
it again.

I skimmed the code w/o building it, looks pretty similar to the type
uuid code. It will of course need tests.

Thanks,

Brian

-- 
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart - osbuild




More information about the parted-devel mailing list