repart: make No-Auto GPT partition flag configurable too
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jun 2021 10:57:26 +0000 (12:57 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Jun 2021 05:34:01 +0000 (14:34 +0900)
commitff0771bfc86c647a7e8fd1bb25ad80df68e582db
tree28bb7bbdb4297837c045f606ac9730c0cad357e2
parent1a27c323dd21341875d62c5b13a878859d094318
repart: make No-Auto GPT partition flag configurable too

This is useful for provisioning initially empty secondary A/B root file
systems. We don't want those to ever be considered for automatic
mounting, for example in "systemd-nspawn --image=", hence we should
create them with the No-Auto flag turned on. Once a file system image is
dropped into the partition the flag may be turned off by the updater
tool, so that it is considered from then on.

Thew new option for this is called NoAuto. I dislike negated options
like this, but this is taken from the naming in the spec, which in turn
inherited the name from the same flag for Microsoft Data Partitions. To
minimize confusion, let's stick to the name hence.
man/repart.d.xml
src/partition/repart.c
src/shared/gpt.c
src/shared/gpt.h