Skip to content

Commit

Permalink
install-multi-user.sh: Preserve symlinks
Browse files Browse the repository at this point in the history
We need to pass -P to ensure that symlinks are copied correctly. Fixes NixOS#6303.
  • Loading branch information
edolstra committed Mar 24, 2022
1 parent 284cb0a commit bb0c4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ install_from_extracted_nix() {
cd "$EXTRACTED_NIX_PATH"

_sudo "to copy the basic Nix files to the new store at $NIX_ROOT/store" \
cp -RLp ./store/* "$NIX_ROOT/store/"
cp -RPp ./store/* "$NIX_ROOT/store/"

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

0 comments on commit bb0c4b9

Please sign in to comment.