From a8754ae3708431d72be63723a6362a4edc82df84 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 12 Apr 2019 13:49:08 -0400 Subject: [PATCH] boot: Activate ostree-finalize-staged even earlier Really, all `ostree admin finalize-staged` needs is access to `/sysroot` and `/boot`. So let's activate it right after `local-fs.target` so that it gets deactivated later in the shutdown process. This should allow us to conflict with less services still running and possibly writing things to `/etc`. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1672283 Closes: #1840 Approved by: cgwalters --- src/boot/ostree-finalize-staged.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/ostree-finalize-staged.service b/src/boot/ostree-finalize-staged.service index 10e551e4..e112bc0c 100644 --- a/src/boot/ostree-finalize-staged.service +++ b/src/boot/ostree-finalize-staged.service @@ -24,8 +24,8 @@ ConditionPathExists=/run/ostree-booted DefaultDependencies=no RequiresMountsFor=/sysroot -After=basic.target -Before=multi-user.target final.target +After=local-fs.target +Before=basic.target final.target Conflicts=final.target [Service]