finalize: Add RequiresMountsFor=/boot too
authorColin Walters <walters@verbum.org>
Tue, 12 May 2020 22:04:53 +0000 (22:04 +0000)
committerColin Walters <walters@verbum.org>
Wed, 13 May 2020 18:52:45 +0000 (18:52 +0000)
In https://bugzilla.redhat.com/show_bug.cgi?id=1827712
some OpenShift CI is seeing `/boot` being unmounted before
`ostree-finalize-staged.service` runs or completes.

We finally tracked this down to a bug elsewhere, but
I think we should add this because it clearly shows
our requirements.

src/boot/ostree-finalize-staged.service

index 8152e5969d78e6548b707c81bae5558593a2e770..90e212b0939c48c76cedfa0d6a170678ef5a749b 100644 (file)
@@ -23,7 +23,7 @@ Documentation=man:ostree(1)
 ConditionPathExists=/run/ostree-booted
 DefaultDependencies=no
 
-RequiresMountsFor=/sysroot
+RequiresMountsFor=/sysroot /boot
 After=local-fs.target
 Before=basic.target final.target
 # We want to make sure the transaction logs are persisted to disk: