fix: restore compatibility with older nixos-rebuild sudo flag
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled
Some checks failed
Terraform Plan / Terraform Plan (push) Has been cancelled
Use --use-remote-sudo in rebuild script since the runner's nixos-rebuild does not support --sudo yet.
This commit is contained in:
@@ -164,7 +164,7 @@ rebuild_node() {
|
|||||||
timeout "$REBUILD_TIMEOUT" nixos-rebuild switch \
|
timeout "$REBUILD_TIMEOUT" nixos-rebuild switch \
|
||||||
--flake "$FLAKE_DIR#$node_name" \
|
--flake "$FLAKE_DIR#$node_name" \
|
||||||
--target-host "$ACTIVE_SSH_USER@$node_ip" \
|
--target-host "$ACTIVE_SSH_USER@$node_ip" \
|
||||||
--sudo
|
--use-remote-sudo
|
||||||
}
|
}
|
||||||
|
|
||||||
rebuild_node_with_retry() {
|
rebuild_node_with_retry() {
|
||||||
|
|||||||
Reference in New Issue
Block a user