]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: add new ReadOnly= and Flags= settings for repart dropins
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Mar 2021 15:16:42 +0000 (16:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Apr 2021 21:16:02 +0000 (23:16 +0200)
commite73309c532999cb15490a78575dd882b24bbe96f
treed9e64f73526c04b33c1b025fb633cca6b6314941
parent5c08da586fc8fe7cda4010e0057cb79ba1d74335
repart: add new ReadOnly= and Flags= settings for repart dropins

Let's make the GPT partition flags configurable when creating new
partitions. This is primarily useful for the read-only flag (which we
want to set for verity enabled partitions).

This adds two settings for this: Flags= and ReadOnly=, which strictly
speaking are redundant. The main reason to have both is that usually the
ReadOnly= setting is the one wants to control, and it' more generic.
Moreover we might later on introduce inherting of flags from CopyBlocks=
partitions, where one might want to control most flags as is except for
the RO flag and similar, hence let's keep them separate.
man/repart.d.xml
src/partition/repart.c
src/shared/gpt.c
src/shared/gpt.h