From ff752cb803c0485e33199e68ff24343b3a0cceea Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 15 Sep 2026 22:40:04 -0400 Subject: [PATCH] Fix hermes-install: add set -euo pipefail so failures don't self-mark done Without it, a failed curl|bash (network not up yet on a very early boot, or any other transient failure) fell through to the final `touch .hermes-installed` line regardless - permanently marking the install "done" via the ConditionPathExists gate even though it never completed. Confirmed live on hl-fwdesk: journalctl --list-boots showed a 2-second first boot, and the marker's birth time matched exactly the end of that boot - the real boot then skipped the service entirely because the marker already existed, leaving `hermes` never installed. pipefail specifically matters here: plain -e alone only checks the last command in `curl | bash`, so a failing curl with a trivially successful (empty-input) bash would not have been caught without it. Co-Authored-By: Claude Sonnet 5 --- guest/common.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/guest/common.nix b/guest/common.nix index be89b51..c1acb5d 100644 --- a/guest/common.nix +++ b/guest/common.nix @@ -204,6 +204,7 @@ in RestartSec = 30; }; script = '' + set -euo pipefail curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh \ | ${pkgs.bash}/bin/bash -s -- --non-interactive --skip-setup touch ${stateDir}/.hermes-installed