while testing cloud-init in -proposed for bug 1629797 I found that the changes to cloud-init create a dependency loop for google-startup-scripts.service"
I'll attach journalctl output.
I think related is https://code.launchpad.net/~philroche/ubuntu/+source/gce-compute-image-packages/+git/gce-compute-image-packages/+merge/311153
The change here seems to me to resolve the issue, and should be safe with new or older cloud-init as cloud-init.target is present everywhere.
$ diff -u /lib/systemd/system/google-startup-scripts.service.dist /lib/systemd/system/google-startup-scripts.service --- /lib/systemd/system/google-startup-scripts.service.dist 2016-11-22 03:32:02.385676527 +0000 +++ /lib/systemd/system/google-startup-scripts.service 2016-11-22 03:33:31.605603761 +0000 @@ -1,9 +1,9 @@ [Unit] Description=Google Compute Engine user startup scripts After=local-fs.target network-online.target network.target -After=google.service rsyslog.service cloud-final.service +After=google.service rsyslog.service cloud-init.target After=multi-user.target -Wants=local-fs.target network-online.target network.target cloud-final.service +Wants=local-fs.target network-online.target network.target
[Service] ExecStart=/usr/share/google/run-startup-scripts
while testing cloud-init in -proposed for bug 1629797 startup- scripts. service"
I found that the changes to cloud-init create a dependency loop for
google-
I'll attach journalctl output.
I think related is /code.launchpad .net/~philroche /ubuntu/ +source/ gce-compute- image-packages/ +git/gce- compute- image-packages/ +merge/ 311153
https:/
The change here seems to me to resolve the issue, and should be safe with new or older cloud-init as cloud-init.target is present everywhere.
$ diff -u /lib/systemd/ system/ google- startup- scripts. service. dist /lib/systemd/ system/ google- startup- scripts. service system/ google- startup- scripts. service. dist 2016-11-22 03:32:02.385676527 +0000 system/ google- startup- scripts. service 2016-11-22 03:33:31.605603761 +0000 local-fs. target network- online. target network.target google. service rsyslog.service cloud-final.service google. service rsyslog.service cloud-init.target multi-user. target local-fs. target network- online. target network.target cloud-final.service local-fs. target network- online. target network.target
--- /lib/systemd/
+++ /lib/systemd/
@@ -1,9 +1,9 @@
[Unit]
Description=Google Compute Engine user startup scripts
After=
-After=
+After=
After=
-Wants=
+Wants=
[Service] /usr/share/ google/ run-startup- scripts
ExecStart=