1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

repart: Use IN_SET() in one more place

This commit is contained in:
Daan De Meyer 2022-11-21 10:28:36 +01:00
parent 214ba5cadf
commit c1979cd881

View File

@ -1643,9 +1643,7 @@ static int partition_read_definition(Partition *p, const char *path, const char
verity_mode_to_string(p->verity));
/* Verity partitions are read only, let's imply the RO flag hence, unless explicitly configured otherwise. */
if ((p->type.designator == PARTITION_ROOT_VERITY ||
p->type.designator == PARTITION_USR_VERITY) &&
p->read_only < 0)
if (IN_SET(p->type.designator, PARTITION_ROOT_VERITY, PARTITION_USR_VERITY) && p->read_only < 0)
p->read_only = true;
/* Default to "growfs" on, unless read-only */