Skip to content

Commit

Permalink
fakemachine.service should wait for network-online.target
Browse files Browse the repository at this point in the history
Just because systemd-networkd has been started does not mean it has
configured any interfaces (even when they are static). The subsequent
unit systemd-network-wait-online.service will wait for at least one
interface to be configured (and in fakemachine, there is only one). This
is being ordered before network-online.target.

Signed-off-by: Helmut Grohne <[email protected]>
  • Loading branch information
helmutg committed Nov 18, 2024
1 parent cd2cf04 commit 7e85fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ Description=fakemachine runner
Conflicts=shutdown.target
Before=shutdown.target
Requires=basic.target
Wants=systemd-resolved.service binfmt-support.service systemd-networkd.service
After=basic.target systemd-resolved.service binfmt-support.service systemd-networkd.service
Wants=systemd-resolved.service binfmt-support.service network-online.target
After=basic.target systemd-resolved.service binfmt-support.service network-online.target
OnFailure=poweroff.target
[Service]
Expand Down

0 comments on commit 7e85fad

Please sign in to comment.