diff options
author | EuAndreh <eu@euandre.org> | 2024-04-01 16:10:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-04-01 17:05:08 -0300 |
commit | d758c4c4884c6ffc9bb6e7133e087a2b20286ee5 (patch) | |
tree | 737c8be17c2cbecedf43599c0b013369aa890e9a | |
parent | Makefile: remove dependency on td(1) for now (diff) | |
download | toph-d758c4c4884c6ffc9bb6e7133e087a2b20286ee5.tar.gz toph-d758c4c4884c6ffc9bb6e7133e087a2b20286ee5.tar.xz |
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.
Notes
See CI logs with:
git notes --ref=refs/notes/ci-logs show d758c4c4884c6ffc9bb6e7133e087a2b20286ee5
git notes --ref=refs/notes/ci-data show d758c4c4884c6ffc9bb6e7133e087a2b20286ee5
Exit status: 0
Duration: 63
-rwxr-xr-x | src/infrastructure/scripts/reconfigure.sh | 7 |
1 files changed, 5 insertions, 2 deletions
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 |