Skip to content

Commit ba6cdfe

Browse files
committed
nixos-remote-pxe: fix rsync changing permissions
1 parent 6a18445 commit ba6cdfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nixos-remote.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ if [[ -n ${extra_files-} ]]; then
318318
extra_files="$extra_files/"
319319
fi
320320
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-remote -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
321+
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
321322
fi
322323

323324
ssh_ <<SSH

0 commit comments

Comments
 (0)