Skip to content

Commit

Permalink
feat(src/nixos-anywhere): don't use rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince213 authored and mergify[bot] committed May 26, 2024
1 parent 781d4ab commit 62e554d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -479,11 +479,8 @@ 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 ${ssh_args[*]}" \
"$extra_files" \
"${ssh_connection}:/mnt/"
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
tar -C "$extra_files" -cpf- . | ssh_ "${maybe_sudo} tar -C /mnt -xf-"
ssh_ "chmod 755 /mnt" # tar also changes permissions of /mnt
fi

step Installing NixOS
Expand Down

0 comments on commit 62e554d

Please sign in to comment.