meta-google: Enable systemd-time-wait-sync
Set the timeout to be 20 minutes to make sure we don't wait for it
forever.
The workflow is the following.
- If time synced,
- Start time-sync.target
- If timesout after 20 minutes,
- Start time-sync.target
- After time-sync.target, start services that depends on it.
Tested:
The service with
```
[Unit]
After=gbmc-time-sync.target
Wants=gbmc-time-sync.target
```
always start after timesynced now.
Tested with modified timeout and normal timesync which both worked.
Change-Id: Idbbcdd0f65a5c49f66f74c8e1b9c94d047cd5d7f
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/meta-google/recipes-google/systemd/files/10-gbmc.conf b/meta-google/recipes-google/systemd/files/10-gbmc.conf
new file mode 100644
index 0000000..8ad42c7
--- /dev/null
+++ b/meta-google/recipes-google/systemd/files/10-gbmc.conf
@@ -0,0 +1,2 @@
+[Service]
+TimeoutStartSec=20min