shared: add generic factory reset state apis

Let's provide a generic implementation of the systemd.factory_reset
kernel cmdline checking repart implements. Moreover add support for
leaving the factory reset state again.

This only establishes the basic APIs, it does not hook them up with
anything.
This commit is contained in:
Lennart Poettering
2025-03-05 12:37:03 +01:00
parent 7eb1cd2f0c
commit 45623d4ad6
3 changed files with 150 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ shared_sources = files(
'exec-util.c',
'exit-status.c',
'extension-util.c',
'factory-reset.c',
'fdset.c',
'fido2-util.c',
'find-esp.c',