mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-10-03 19:27:35 +03:00
fix(src/nixos-anywhere): make root own copied files
This commit is contained in:
parent
5770dd84d2
commit
09f1f8306b
@ -477,7 +477,7 @@ fi
|
||||
|
||||
if [[ -n ${extra_files-} ]]; then
|
||||
step Copying extra files
|
||||
tar -C "$extra_files" -cpf- . | ssh_ "${maybe_sudo} tar -C /mnt -xf-"
|
||||
tar -C "$extra_files" -cpf- . | ssh_ "${maybe_sudo} tar -C /mnt -xf- --no-same-owner"
|
||||
ssh_ "chmod 755 /mnt" # tar also changes permissions of /mnt
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user