gpt: we actually honour the ReadOnly= flag on XBOOTLDR partitions too

The partition type is defined in our Discoverable Partition Spec, and we
honour the flag for it, hence allow setting it too.
This commit is contained in:
Lennart Poettering
2021-04-21 17:38:21 +02:00
parent 7feb1dd654
commit 5a44565cb7

View File

@@ -158,7 +158,8 @@ bool gpt_partition_type_knows_read_only(sd_id128_t id) {
GPT_HOME,
GPT_SRV,
GPT_VAR,
GPT_TMP) ||
GPT_TMP,
GPT_XBOOTLDR) ||
gpt_partition_type_is_root_verity(id) || /* pretty much implied, but let's set the bit to make things really clear */
gpt_partition_type_is_usr_verity(id); /* ditto */
}