Skip to content

Commit

Permalink
Merge pull request #434 from phaer/no-sudo-extra-files
Browse files Browse the repository at this point in the history
Don't use sudo when uploading extraFiles
  • Loading branch information
Mic92 authored Dec 12, 2024
2 parents 9ba099b + 685bbb2 commit b7e91fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ nixosInstall() {

if [[ -n ${extraFiles} ]]; then
step Copying extra files
tar -C "$extraFiles" -cpf- . | runSsh "${maybeSudo} tar -C /mnt -xf- --no-same-owner"
tar -C "$extraFiles" -cpf- . | runSsh "tar -C /mnt -xf- --no-same-owner"
runSsh "chmod 755 /mnt" # tar also changes permissions of /mnt
fi

Expand Down

0 comments on commit b7e91fa

Please sign in to comment.