mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
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:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user