Skip to content

Commit

Permalink
fix(node): setupos networking dependency (#3159)
Browse files Browse the repository at this point in the history
Setting setupos.service to depend on
systemd-networkd-wait-online.service prevents a timing issue where
setupos.service runs before the networking has been set up.

If generate-network-config fails, setupos.service still runs. It just
hangs for a minute after generate-network-config fails before starting
setupos.service.
  • Loading branch information
andrewbattat authored Dec 12, 2024
1 parent 52d16c3 commit c25680c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ic-os/components/setupos-scripts/setupos.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[Unit]
Description=SetupOS install process
After=generate-network-config.service
After=systemd-networkd-wait-online.service
Wants=systemd-networkd-wait-online.service

[Service]
Type=idle
Expand Down

0 comments on commit c25680c

Please sign in to comment.