[Unit] Description=Felhom host bootstrap (fetch + run felhom-host-install.sh unattended, retry until success) Documentation=https://felhom.eu/documentation/backlog/ROADMAP.md # Network-dependent work lives HERE (not in the first-boot stub) per spike S8a: the stub is # exactly-once and network-independent; this unit retries forever until host-install exits 0. After=network-online.target pve-cluster.service pveproxy.service Wants=network-online.target # Second exactly-once lock (the script also writes/checks this flag): once host-install succeeds, # the flag exists and this unit becomes a no-op even if re-enabled. ConditionPathExists=!/etc/felhom/.bootstrap-done # Retry forever: no start-rate limit. StartLimitIntervalSec=0 [Service] Type=oneshot ExecStart=/usr/local/sbin/felhom-bootstrap.sh # Retry every 30s on any non-zero exit (fetch failed, host-install failed mid-run, no network yet). Restart=on-failure RestartSec=30 # Journal-only logging (no secret ever printed; keys-not-values). StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target