summaryrefslogtreecommitdiff
path: root/units/first-boot-complete.target
diff options
context:
space:
mode:
authorHarald Seiler <hws@denx.de>2020-09-06 21:23:36 +0200
committerHarald Seiler <hws@denx.de>2020-10-19 16:28:22 +0200
commitf4466bdbf9c39e9b303809f93c04a80795606503 (patch)
treec4fea7954df3a7dbcd9d66ce88533e427295512b /units/first-boot-complete.target
parentc261a5d01469a3f5b6c448c066ea7ad6d14a5300 (diff)
downloadsystemd-f4466bdbf9c39e9b303809f93c04a80795606503.tar.gz
units: add first-boot-complete.target for first boot ordering
Add a new target for synchronizing units that wish to run once during the first boot of the system. The machine-id will be committed to disk only after the target has been reached, thus ensuring that all units ordered before it had a chance to complete.
Diffstat (limited to 'units/first-boot-complete.target')
-rw-r--r--units/first-boot-complete.target14
1 files changed, 14 insertions, 0 deletions
diff --git a/units/first-boot-complete.target b/units/first-boot-complete.target
new file mode 100644
index 0000000000..98b236e9ff
--- /dev/null
+++ b/units/first-boot-complete.target
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=First Boot Complete
+Documentation=man:systemd.special(7)
+RefuseManualStart=yes
+ConditionFirstBoot=yes