>>>>> On Tue, 16 Sep 2025 11:38:56 +0100, Vanush Misha Paturyan 
>>>>> <[email protected]> said:

    > Quick version of the question: can setup-storage be configured to 
preserve the "Disk Identifier" and "Partition UUIDs" via its `disk_config` 
configuration file?

I'm not sure about the status.

First, you only use preserve_always for a certain partition. But you
can also define preserve_always:all in the disk_config line.
This may skip the steps to recreate each partition.

Then you can use always_format for a partition, for which a new
filesystem should be created.

Maybe this pworks as you expect.



Some more infos:

You can already use the partuuid or partlabel for the fstabkey, so we
already know how to read the UUIDs.
But in the code, I see nothing that saves or set a UUID of the disk or
of a partition.

Did you already tried the new disk_config format for GPT partitions?

Instead of primary......
you can say
p=<partlablename> ......

for e.g.
p=boot /boot/efi  ..........
p=data /data   .......

You may write two hooks, one that saves all uuids and the other that
restores the old uuid after setup-storage was called.

-- 
regards Thomas

Antwort per Email an