Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit 7e99e7f

Browse files
committed
baremetal: let installer.service retry on failure
In case the network only has a temporary problem, the installer service should start again on failure. Convert it to a oneshot service to set RemainAfterExist, so that it is not triggered twice if anything that depends on it is pulling it in again after it finished.
1 parent c1f853e commit 7e99e7f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

assets/terraform-modules/matchbox-flatcar/templates/install.yaml.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ systemd:
88
Requires=network-online.target
99
After=network-online.target
1010
[Service]
11-
Type=simple
11+
Type=oneshot
12+
RemainAfterExit=true
13+
Restart=on-failure
14+
RestartSec=10s
1215
ExecStart=/opt/installer
1316
[Install]
1417
WantedBy=multi-user.target

pkg/assets/generated_assets.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)