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 b660d14
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ 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
After=sysinit.target
Requires=sysinit.target

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

0 comments on commit b660d14

Please sign in to comment.