nixos/netboot: Fix installer update failures
`netboot-update` failed with an opaque curl usage error whenever the `installer` tag advanced past a build that had not published assets: the `jq` select found no matching asset, and the empty result was passed straight to `curl` as the URL. Report the missing asset (and an unresolvable tag) instead. The unit also had its network dependency inverted, being `wantedBy` network-online.target rather than wanting and ordering after it. Fix the idiom and keep it in the boot transaction via multi-user.target. On river that is not enough on its own, because the WAN is a pppd interface that networkd's wait-online knows nothing about, so network-online.target is reached well before there is a route off-site. Gate the service on wan-online.target there, following the same wantedBy + partOf idiom as ipsec, which also re-runs the fetch whenever the link returns. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -145,6 +145,15 @@
|
||||
};
|
||||
};
|
||||
|
||||
# networkd's wait-online knows nothing about the pppd-owned `wan` interface, so
|
||||
# network-online.target is reached long before there's a route off-site. Gate the
|
||||
# installer fetch on the WAN instead, and retry it whenever the link returns.
|
||||
systemd.services.netboot-update = {
|
||||
after = [ "wan-online.target" ];
|
||||
wantedBy = mkForce [ "wan-online.target" ];
|
||||
partOf = [ "wan-online.target" ];
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
netdevs = mkMerge [
|
||||
(mkVLAN "wan-pon-ont" vlans.wan-pon-ont)
|
||||
|
||||
Reference in New Issue
Block a user