From: Lennart Poettering Date: Wed, 21 Apr 2021 15:38:21 +0000 (+0200) Subject: gpt: we actually honour the ReadOnly= flag on XBOOTLDR partitions too X-Git-Tag: v249-rc1~364 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a44565cb75c1c8c924a2c1955b431f498288fe3;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/gpt.c b/src/shared/gpt.c index 6b1a5761388..69da6c72806 100644 --- a/src/shared/gpt.c +++ b/src/shared/gpt.c @@ -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 */ }