repart: derive hash partition size from SizeMaxBytes= of data sibling
authorWilliButz <willibutz@posteo.de>
Fri, 4 Oct 2024 17:51:57 +0000 (19:51 +0200)
committerWilliButz <willibutz@posteo.de>
Wed, 9 Oct 2024 11:20:14 +0000 (13:20 +0200)
commitd3032e651e2131c47d276e3fbdcbdf9fc51c8ef9
treeda15bcbe68627aa7c7d8e77bc1aa857b014f9daa
parent61808636a797917025abc94dc85f5180b8e2de64
repart: derive hash partition size from SizeMaxBytes= of data sibling

This change makes it possible for repart to create dm-verity hash
partitions for a custom amount of protected data. When the property
`SizeMaxBytes=` is specified for a dm-verity data partition, the size
of the corresponding hash partition is set to accommodate hash data
for this maximum size, rather than the actual contents its data
sibling. However, the contained hash data continues to be generated
from said sibling.
src/partition/repart.c