From d758c4c4884c6ffc9bb6e7133e087a2b20286ee5 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 1 Apr 2024 16:10:16 -0300 Subject: reconfigure.sh: rm -f /etc/guix/channels.scm before copying IIUC some part of "guix pull" makes this a symlink to a file in the store, a read-only directory, which we can't copy into. --- src/infrastructure/scripts/reconfigure.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/infrastructure/scripts/reconfigure.sh') diff --git a/src/infrastructure/scripts/reconfigure.sh b/src/infrastructure/scripts/reconfigure.sh index ce2d3e8..7a3b84e 100755 --- a/src/infrastructure/scripts/reconfigure.sh +++ b/src/infrastructure/scripts/reconfigure.sh @@ -127,8 +127,11 @@ else # The same is true for the reconfigure script itself. sudo cp description "$REPO"/description sudo cp src/infrastructure/ci/git-pre-receive.sh "$REPO"/hooks/pre-receive - sudo cp src/infrastructure/guix/channels.scm /etc/guix/ - sudo cp src/infrastructure/guix/system.scm /etc/guix/ + sudo rm -f /etc/guix/channels.scm /etc/guix/system.scm + sudo cp \ + src/infrastructure/guix/channels.scm \ + src/infrastructure/guix/system.scm \ + /etc/guix/ sudo -i guix system -c$NPROC -v3 reconfigure /etc/guix/system.scm -- cgit v1.2.3