repart: Always derive fs/luks UUIDs from generated partition UUID
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 15 Dec 2022 14:06:40 +0000 (14:06 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 15 Dec 2022 21:21:17 +0000 (22:21 +0100)
commit15cad3a2abdbcdb8c2efc255abd636d511b20f50
tree3595b8e9c609264bf4451e4408d9c65c53980f38
parent0318d54539fe168822447889ac0e858a10c55f74
repart: Always derive fs/luks UUIDs from generated partition UUID

When generating verity partitions, we only know the partition UUID
of the verity data and hash partition after doing the verity
formatting. This means we can't use the verity partition UUID as
input for deriving the filesystem/luks UUIDs. Currently, we derive
the filesystem/luks UUID from the null UUID instead, which isn't
ideal. Instead, let's always generate a partition UUID and use it
to derive the fs/luks UUIDs, but only use it as the actual partition
UUID if we're not doing verity for the partition.
src/partition/repart.c