aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2021-08-17 22:30:32 +0200
committerDomen Kožar <domen@dev.si>2021-08-18 16:50:36 +0200
commit475fc109e72e494039b253131314e3a3ea5723c6 (patch)
tree9f527506bd28a1b231f1c8d43f643c8787a54c3f /scripts
parent2cd1a5b8f31627a09ac34afcbb0f76e90606204f (diff)
Remove rsync usage in the installer
It's not commonly installed on systems like debian, so avoid the bootstrapping problem by using cp and chmod.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install-multi-user.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install-multi-user.sh b/scripts/install-multi-user.sh
index e1046c19c..d02c5cac0 100644
--- a/scripts/install-multi-user.sh
+++ b/scripts/install-multi-user.sh
@@ -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"