Skip to content

Commit

Permalink
multi-arch-builders: call nm-online directly to wait for network bringup
Browse files Browse the repository at this point in the history
Wants/After=network-online.target doesn't work in a user unit. See
systemd/systemd#3312 (comment)
  • Loading branch information
dustymabe authored and jlebon committed Oct 19, 2021
1 parent 8f87172 commit a30ae86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions multi-arch-builders/fcos-aarch64-builder.bu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a30ae86

Please sign in to comment.