summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-19 14:04:34 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-24 09:07:41 +0200
commite11745d000d7e9b3112bb336735c1bdfa77e9add (patch)
tree701cf09c64380c23bc0e696624205cdd2299731e
parentrepart: Use swap format for swap partition even if encrypted (diff)
downloadsystemd-e11745d000d7e9b3112bb336735c1bdfa77e9add.tar.xz
systemd-e11745d000d7e9b3112bb336735c1bdfa77e9add.zip
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.
-rw-r--r--src/partition/repart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partition/repart.c b/src/partition/repart.c
index 080a232e4e..48ba4d7973 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -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;