From 250c11895bb2e1fb517d5b808dbc39b1c5f6395e Mon Sep 17 00:00:00 2001 From: Felix Uhl Date: Sun, 15 Jan 2023 15:42:24 +0100 Subject: [PATCH] Don't overwrite already-copied files on install Fixes #6679 --- scripts/install-multi-user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh index f149ea0d79a5..5ca728efa239 100644 --- a/scripts/install-multi-user.sh +++ b/scripts/install-multi-user.sh @@ -805,7 +805,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 -RPp ./store/* "$NIX_ROOT/store/" + cp -RPnp ./store/* "$NIX_ROOT/store/" _sudo "to make the new store non-writable at $NIX_ROOT/store" \ chmod -R ugo-w "$NIX_ROOT/store/"