summaryrefslogtreecommitdiff
path: root/gnu/machine/hetzner.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/machine/hetzner.scm')
-rw-r--r--gnu/machine/hetzner.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/machine/hetzner.scm b/gnu/machine/hetzner.scm
index c19f0ebc810..cf035c30cc8 100644
--- a/gnu/machine/hetzner.scm
+++ b/gnu/machine/hetzner.scm
@@ -592,6 +592,14 @@ mkdir -p /gnu/store
592mount --bind /mnt/tmp/gnu/store /gnu/store 592mount --bind /mnt/tmp/gnu/store /gnu/store
593 593
594wget -O /tmp/guix-install.sh https://guix.gnu.org/guix-install.sh 594wget -O /tmp/guix-install.sh https://guix.gnu.org/guix-install.sh
595
596# Modify the install script to point the systemd unit of the /gnu/store
597# mountpoint to the same /mnt/tmp/gnu/store which was introduced above.
598store_fix=\"sed -i 's#Where=/gnu/store#Where=/mnt/tmp/gnu/store#'
599 ~~root/.config/guix/current/lib/systemd/system/gnu-store.mount\"
600sed -i \"s@install_unit gnu-store.mount\"\\
601\"@$(printf \"%q \" $store_fix)\\ninstall_unit gnu-store.mount@\" /tmp/guix-install.sh
602
595chmod +x /tmp/guix-install.sh 603chmod +x /tmp/guix-install.sh
596set +o pipefail # avoid hangup on 'yes' killing this script 604set +o pipefail # avoid hangup on 'yes' killing this script
597yes '' | /tmp/guix-install.sh 605yes '' | /tmp/guix-install.sh