install-multi-user.sh: Preserve symlinks

We need to pass -P to ensure that symlinks are copied correctly. Fixes #6303.
This commit is contained in:
Eelco Dolstra 2022-03-24 12:46:46 +01:00
parent 284cb0aad7
commit bb0c4b9f25

View File

@ -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/"