diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/systemd b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/systemd new file mode 100644 index 0000000000..3806da9f57 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/systemd @@ -0,0 +1,13 @@ +cros_post_src_install_timesync() { + local dir="${D}$(systemd_get_systemunitdir)/systemd-timesyncd.service.d" + mkdir -p "${dir}" + pushd "${dir}" + cat <flatcar.conf || die +# Allow sysexts to ship timesyncd replacements which can have +# a Conflicts=systemd-timesyncd directive that would result +# in systemd-timesyncd not being started. +[Unit] +After=ensure-sysext.service +EOF + popd +}