From 598bbdded7c683d22d572bfbf6d76139a86ebd19 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 23 Oct 2019 17:58:33 +0000 Subject: [PATCH] ignition-firstboot-complete.service: Run as part of basic.target See: https://github.com/openshift/installer/pull/2554 Basically the OpenShift installer on vSphere injects a service which reboots the first time, but I believe this could easily race with `ignition-firstboot-complete`. Let's mark the boot complete much earlier. --- systemd/ignition-firstboot-complete.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systemd/ignition-firstboot-complete.service b/systemd/ignition-firstboot-complete.service index 236b150..1615a4e 100644 --- a/systemd/ignition-firstboot-complete.service +++ b/systemd/ignition-firstboot-complete.service @@ -21,4 +21,5 @@ MountFlags=slave ExecStart=/bin/sh -c 'mount -o remount,rw /boot && rm /boot/ignition.firstboot' [Install] -WantedBy=multi-user.target +# Part of basic.target so this happens early on in firstboot +WantedBy=basic.target