systemd/ostree-boot-complete: Start earlier
authorColin Walters <walters@verbum.org>
Fri, 5 Jan 2024 15:58:57 +0000 (10:58 -0500)
committerColin Walters <walters@verbum.org>
Fri, 5 Jan 2024 16:02:08 +0000 (11:02 -0500)
Prep for changing this service to perform state computations
such as "is this boot the default, or did we get rolled back"
that can be used by higher level tools.

src/boot/ostree-boot-complete.service

index d5b930a78ecb0e9f0a66d0074e5ac1e69751bb33..98ae3d181da24a411269a76d5a5cdc1c797a2078 100644 (file)
@@ -21,6 +21,9 @@ ConditionKernelCommandLine=ostree
 # marked as a triggering condition in case in the future we want
 # to do something else.
 ConditionPathExists=|/boot/ostree/finalize-failure.stamp
+# We start early
+DefaultDependencies=no
+After=sysinit.target
 RequiresMountsFor=/boot
 # Ensure that we propagate the failure into the current boot before
 # any further finalization attempts.