]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto symlinks: take factory reset mode into consideration
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Feb 2025 16:18:12 +0000 (17:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Mar 2025 11:38:25 +0000 (12:38 +0100)
commitc7da91ff665911f037cf242ebf5229da9dab6574
tree25df1553f594e6ea1c13373d255d98a0f874f143
parent9f0c830b5fb2624120706989211656ae0c75536e
gpt-auto symlinks: take factory reset mode into consideration

In relevant factory reset situation the root disk itself is subject to
removal. This somewhat conflicts with automatic root disk discovery,
since the system first comes up with one candidate for the root disk,
which is then replaced by another.

Let's address this by determining at the moment of probing for the
gpt-root logic what the factory reset state currently is. This is then
used to maintain two distinct symlinks to the gpt auto root device: one
which is always available and one that is only available if factory
reset is off or complete.

The new symlinks is not used by anything yet. This will be added in a
later commit.
rules.d/99-systemd.rules.in