From a4f54a43fe994b39c2a7452eb2409812f11c21d2 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Mon, 18 Oct 2021 22:12:21 -0400 Subject: [PATCH] multi-arch-builders: call nm-online directly to wait for network bringup Wants/After=network-online.target doesn't work in a user unit. See https://github.com/systemd/systemd/issues/3312#issuecomment-922096361 --- multi-arch-builders/fcos-aarch64-builder.bu | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/multi-arch-builders/fcos-aarch64-builder.bu b/multi-arch-builders/fcos-aarch64-builder.bu index e8e1d7aec..47af78e8b 100644 --- a/multi-arch-builders/fcos-aarch64-builder.bu +++ b/multi-arch-builders/fcos-aarch64-builder.bu @@ -83,12 +83,11 @@ storage: inline: | [Unit] Description=Build COSA container - After=network-online.target - Wants=network-online.target [Service] # Give time for the build to complete TimeoutStartSec=180m Type=oneshot + ExecStartPre=nm-online --timeout=30 ExecStartPre=mkdir -p /home/builder/coreos-assembler/ ExecStartPre=-git clone --depth=1 https://github.com/coreos/coreos-assembler.git /home/builder/coreos-assembler/ ExecStartPre=git -C /home/builder/coreos-assembler/ pull