repart: open target devices before UUID creation
authorMichael Ferrari <nekkodroid404@gmail.com>
Thu, 3 Oct 2024 12:02:12 +0000 (14:02 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 3 Oct 2024 19:55:06 +0000 (20:55 +0100)
commitf106fd2dbdbd9debfc2d2ed4d96ae3108a29c79b
tree649f2a049e429e5e75fe37d83b0ddff0e5b71832
parent3be87dca031956bc0f7744d0bb9e1fea04acd945
repart: open target devices before UUID creation

This is to ensure that the UUIDs from the CopyBlocks= devices are copied
to the corresponding new partition instead of creating a new UUID for
it. With this verity partitions can be copied, keeping their UUIDs to
ensure that they still match up with what is specified in roothash=.
src/partition/repart.c