From 5a44565cb75c1c8c924a2c1955b431f498288fe3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 21 Apr 2021 17:38:21 +0200 Subject: [PATCH] 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. --- src/shared/gpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/gpt.c b/src/shared/gpt.c index 6b1a576138..69da6c7280 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 */ }