mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
repart: Determine verity sig size based on partition designator
Verity= is an image build concept, not a first boot concept, whereas a partition designator is always available, so let's do the size stuff based on that.
This commit is contained in:
parent
942eba930b
commit
e11745d000
@ -814,7 +814,7 @@ static uint64_t partition_min_size(const Context *context, const Partition *p) {
|
||||
return p->current_size;
|
||||
}
|
||||
|
||||
if (p->verity == VERITY_SIG)
|
||||
if (IN_SET(p->type.designator, PARTITION_ROOT_VERITY_SIG, PARTITION_USR_VERITY_SIG))
|
||||
return VERITY_SIG_SIZE;
|
||||
|
||||
sz = p->current_size != UINT64_MAX ? p->current_size : HARD_MIN_SIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user