Skip to content

Commit

Permalink
coreos-update-ca-trust: Run After=sysinit.target
Browse files Browse the repository at this point in the history
I am seeing this service fail in RHCOS when rebasing ostree
to a version that supports ostreedev/ostree#1767

When using `DefaultDependencies=no`, one really wants to specify *some*
dependency - very few units have no dependencies at all.

In this case, let's run "early" which means after `sysinit.target`
but before `basic.target`, which will ensure we run after `ostree-prepare-root.service`.
  • Loading branch information
cgwalters committed May 18, 2020
1 parent c248821 commit 718decd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ ConditionDirectoryNotEmpty=/etc/pki/ca-trust/source/anchors/
# that may speak TLS to external services. In the future,
# it may make sense to do this in the initramfs too.
DefaultDependencies=no
# This ensures we run after important bits like ostree-prepare-root.service
After=sysinit.target
Requires=sysinit.target

[Service]
ExecStart=/usr/bin/update-ca-trust extract
Expand Down

0 comments on commit 718decd

Please sign in to comment.