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 684a384 commit ebbc383
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 ebbc383

Please sign in to comment.