mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
Don't preserve local permissions for disk encryption files
This commit is contained in:
parent
2d3cc225b3
commit
d2947ff6f2
@ -214,7 +214,7 @@ if [[ -n ${disk_encryption_keys:-} ]]; then
|
||||
if [[ -d "$disk_encryption_keys" ]]; then
|
||||
disk_encryption_keys="$disk_encryption_keys/"
|
||||
fi
|
||||
rsync -vaAXF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$disk_encryption_keys" "${ssh_connection#ssh://}:/tmp/"
|
||||
rsync -vrlF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$disk_encryption_keys" "${ssh_connection#ssh://}:/tmp/"
|
||||
fi
|
||||
|
||||
nixCopy --to "ssh://$ssh_connection" "$disko_script"
|
||||
|
Loading…
Reference in New Issue
Block a user