sane-private-unlock-remote: add a timeout

This commit is contained in:
2025-06-29 20:08:06 +00:00
parent 2e7f164738
commit 73fcb27251

View File

@@ -15,5 +15,5 @@ if [ -z "$passwd" ]; then
fi
echo "attempting to mount private store on $host"
echo "$passwd" | ssh "$host" 'if ! test -f /mnt/persist/private/init; then cat /dev/stdin > /run/gocryptfs/private.key; fi'
echo "$passwd" | timeout 30 ssh "$host" 'if ! test -f /mnt/persist/private/init; then cat /dev/stdin > /run/gocryptfs/private.key; fi'
echo "mount succeeded"