Skip to content

Commit 9afed1b

Browse files
pogobananeMic92
authored andcommitted
nixos-remote-pxe: fix rsync changing permissions
1 parent 5bc7e1b commit 9afed1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ if [[ -n ${extra_files-} ]]; then
364364
fi
365365
step Copying extra files
366366
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
367+
ssh_ "chmod 755 /mnt" # rsync also changes permissions of /mnt
367368
fi
368369

369370
step Installing NixOS

0 commit comments

Comments
 (0)