See the best posts from any Bluesky account
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add /etc/passwd entry so ssh works in the spindle container

Setting HOME alone wasn't enough: OpenSSH calls getpwuid() up front
and aborts when no entry exists for uid 0, regardless of HOME. The
Nixery base image ships without one, so append a minimal root entry
before invoking ssh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+4 -1
+4 -1
.tangled/workflows/deploy.yml
··· 15 15 - name: "Deploy via SSH" 16 16 command: | 17 17 set -euo pipefail 18 - export HOME="$(mktemp -d)" 18 + # Nixery container has no /etc/passwd entry for uid 0; ssh 19 + # calls getpwuid() and aborts without one. Add a minimal entry. 20 + echo "root:x:0:0:root:/root:/bin/sh" >> /etc/passwd 21 + export HOME=/root 19 22 mkdir -p "$HOME/.ssh" 20 23 printf '%s\n' "$DEPLOY_SSH_KEY" > "$HOME/.ssh/id_deploy" 21 24 chmod 600 "$HOME/.ssh/id_deploy"