From 54e92a3c0553b212b1462df1dbc3f35f47356824 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 7 May 2026 17:34:31 +0900 Subject: machine: hetzner: Refine installation with bind mount in rescue. This reverts commit 3e1befe1d8e ("machine: hetzner: Fix deployment."), adopting a simpler/correct alternative. * gnu/machine/hetzner.scm (hetzner-machine-rescue-install-os): Bind mount /gnu, not /gnu/store. Change-Id: I09ffb4db8a39b4bcd5e7645aee63427c6bc969a0 Suggested-by: Rutherther --- gnu/machine/hetzner.scm | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/gnu/machine/hetzner.scm b/gnu/machine/hetzner.scm index 4640e2c619..8795ff8e5e 100644 --- a/gnu/machine/hetzner.scm +++ b/gnu/machine/hetzner.scm @@ -585,19 +585,11 @@ chmod 600 /mnt/root/.ssh/authorized_keys # Small instance don't have much disk space. Bind mount the store of the # rescue system to the tmp directory of the new Guix system. -mkdir -p /mnt/tmp/gnu/store -mkdir -p /gnu/store -mount --bind /mnt/tmp/gnu/store /gnu/store +mkdir -p /mnt/tmp/gnu +mkdir -p /gnu +mount --bind /mnt/tmp/gnu /gnu wget -O /tmp/guix-install.sh https://guix.gnu.org/guix-install.sh - -# Modify the install script to point the systemd unit of the /gnu/store -# mountpoint to the same /mnt/tmp/gnu/store which was introduced above. -store_fix=\"sed -i 's#Where=/gnu/store#Where=/mnt/tmp/gnu/store#' - ~~root/.config/guix/current/lib/systemd/system/gnu-store.mount\" -sed -i \"s@install_unit gnu-store.mount\"\\ -\"@$(printf \"%q \" $store_fix)\\ninstall_unit gnu-store.mount@\" /tmp/guix-install.sh - chmod +x /tmp/guix-install.sh set +o pipefail # avoid hangup on 'yes' killing this script yes '' | /tmp/guix-install.sh -- cgit v1.3