diff --git a/scripts/upgrade-irv-ml1-cuda.sh b/scripts/upgrade-irv-ml1-cuda.sh index b24994f..b5685ed 100755 --- a/scripts/upgrade-irv-ml1-cuda.sh +++ b/scripts/upgrade-irv-ml1-cuda.sh @@ -89,7 +89,11 @@ remote_phase1() { echo echo "=== cuda-drivers candidate ===" - apt-cache policy cuda-drivers | head -10 + # Don't `| head` here — apt-cache policy emits enough that head + # closes the pipe early and SIGPIPEs apt-cache, which under + # set -o pipefail aborts the whole script before we get to the + # actual install + reboot. Output is short anyway. + apt-cache policy cuda-drivers echo echo "=== snapshotting current nvidia packages (rollback reference) ===" @@ -133,7 +137,8 @@ remote_phase2() { sleep 8 echo echo "=== container status ===" - docker ps --format "table {{.Names}}\t{{.Status}}" | head -15 + # `| head -15` would SIGPIPE docker ps under pipefail; just print all. + docker ps --format "table {{.Names}}\t{{.Status}}" } remote_rollback() {