Skip to content

Commit

Permalink
Merge pull request #5150 from NixOS/install-no-rsync
Browse files Browse the repository at this point in the history
Remove rsync usage in the installer
  • Loading branch information
domenkozar authored Aug 19, 2021
2 parents 2cd1a5b + 475fc10 commit ffa629b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,10 @@ install_from_extracted_nix() {
cd "$EXTRACTED_NIX_PATH"

_sudo "to copy the basic Nix files to the new store at $NIX_ROOT/store" \
rsync -rlpt --chmod=-w ./store/* "$NIX_ROOT/store/"
cp -RLp ./store/* "$NIX_ROOT/store/"

_sudo "to make the new store non-writable at $NIX_ROOT/store" \
chmod -R ugo-w "$NIX_ROOT/store/"

if [ -d "$NIX_INSTALLED_NIX" ]; then
echo " Alright! We have our first nix at $NIX_INSTALLED_NIX"
Expand Down

0 comments on commit ffa629b

Please sign in to comment.