Skip to content

Commit

Permalink
fish: start_ssh_agent: Ignore interactive check with nspawn
Browse files Browse the repository at this point in the history
We use systemd-nspawn with '--pty', which should allow us to give any
input if necessary but this is necessary to connect a new systemd-run
command with the ssh-agent running inside the guest.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
  • Loading branch information
nathanchance committed Dec 27, 2024
1 parent 3c1991e commit 3db8afc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fish/functions/start_ssh_agent.fish
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function start_ssh_agent -d "Launch an ssh agent only if it has not already been
set force true
end
end
if in_nspawn
set force true
end
if not set -q force
status is-interactive; or return 0
end
Expand Down

0 comments on commit 3db8afc

Please sign in to comment.