forked from M-Labs/nix-scripts
use sandbox path to get SSH key
This commit is contained in:
parent
01852ed4bd
commit
d1b5bf9099
3
main.nix
3
main.nix
@ -52,13 +52,12 @@ in
|
|||||||
artiqpkgs.openocd
|
artiqpkgs.openocd
|
||||||
pkgs.iputils
|
pkgs.iputils
|
||||||
];
|
];
|
||||||
sshKey = /var/lib/hydra/queue-runner/.ssh/id_rsa;
|
|
||||||
phases = [ "buildPhase" ];
|
phases = [ "buildPhase" ];
|
||||||
buildPhase =
|
buildPhase =
|
||||||
''
|
''
|
||||||
export HOME=`mktemp -d`
|
export HOME=`mktemp -d`
|
||||||
mkdir $HOME/.ssh
|
mkdir $HOME/.ssh
|
||||||
cp ${sshKey} $HOME/.ssh/id_rsa
|
cp /opt/hydra_id_rsa $HOME/.ssh/id_rsa
|
||||||
artiq_flash -t kc705 -H rpi
|
artiq_flash -t kc705 -H rpi
|
||||||
sleep 15
|
sleep 15
|
||||||
# ping: socket: Operation not permitted
|
# ping: socket: Operation not permitted
|
||||||
|
Loading…
Reference in New Issue
Block a user