The default image policy for the verity sig partition expects
the r/o flag to be set, but repart so far did not add it by
default if unset, like it does for the verity partition
}
/* Verity partitions are read only, let's imply the RO flag hence, unless explicitly configured otherwise. */
- if ((partition_designator_is_verity_hash(p->type.designator) || p->verity == VERITY_DATA) && p->read_only < 0)
+ if ((partition_designator_is_verity_hash(p->type.designator) ||
+ partition_designator_is_verity_sig(p->type.designator) ||
+ IN_SET(p->verity, VERITY_DATA, VERITY_SIG)) && p->read_only < 0)
p->read_only = true;
/* Default to "growfs" on, unless read-only */
/* pretty much implied, but let's set the bit to make things really clear */
PARTITION_ROOT_VERITY,
PARTITION_USR_VERITY,
+ PARTITION_ROOT_VERITY_SIG,
+ PARTITION_USR_VERITY_SIG,
PARTITION_HOME,
PARTITION_SRV,
PARTITION_VAR,