Skip to content

Commit

Permalink
Merge #172
Browse files Browse the repository at this point in the history
172: also pass ssh_args to rsync r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <[email protected]>
  • Loading branch information
bors[bot] and Mic92 committed Aug 11, 2023
2 parents 9df7987 + 3197bcf commit fc9b3a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ elif [[ -n ${disko_script-} ]] && [[ -n ${nixos_system-} ]]; then
if [[ ! -e ${disko_script} ]] || [[ ! -e ${nixos_system} ]]; then
abort "${disko_script} and ${nixos_system} must be existing store-paths"
fi
:
else
abort "flake must be set"
fi
Expand Down Expand Up @@ -429,7 +428,10 @@ if [[ -n ${extra_files-} ]]; then
extra_files="$extra_files/"
fi
step Copying extra files
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
rsync -rlpv -FF \
-e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${ssh_args[*]}" \
"$extra_files" \
"${ssh_connection}:/mnt/"
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
fi

Expand Down

0 comments on commit fc9b3a7

Please sign in to comment.