diff options
| author | Gábor Udvari <mail@gaborudvari.com> | 2026-04-24 22:56:27 +0200 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-05-05 23:48:44 +0900 |
| commit | 3e1befe1d8e3e1fae38abd8b5f89db2cd764372b (patch) | |
| tree | a49469c4daed0fb917146e8496ef74fea8af9cd2 | |
| parent | c8f53f4b2e73587296daa0fa41cff583287d434d (diff) | |
machine: hetzner: Fix deployment.
* gnu/machine/hetzner.scm (hetzner)
[hetzner-machine-rescue-install-os]: Fix deployment.
Reported-by: Sylvain Bellemare (https://codeberg.org/gluonix)
Fixes: #6585
Change-Id: Ie16ee541ad5b81d5014b825ad0e35deddd2e497e
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
| -rw-r--r-- | gnu/machine/hetzner.scm | 8 |
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 | |||
| 592 | mount --bind /mnt/tmp/gnu/store /gnu/store | 592 | mount --bind /mnt/tmp/gnu/store /gnu/store |
| 593 | 593 | ||
| 594 | wget -O /tmp/guix-install.sh https://guix.gnu.org/guix-install.sh | 594 | wget -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. | ||
| 598 | store_fix=\"sed -i 's#Where=/gnu/store#Where=/mnt/tmp/gnu/store#' | ||
| 599 | ~~root/.config/guix/current/lib/systemd/system/gnu-store.mount\" | ||
| 600 | sed -i \"s@install_unit gnu-store.mount\"\\ | ||
| 601 | \"@$(printf \"%q \" $store_fix)\\ninstall_unit gnu-store.mount@\" /tmp/guix-install.sh | ||
| 602 | |||
| 595 | chmod +x /tmp/guix-install.sh | 603 | chmod +x /tmp/guix-install.sh |
| 596 | set +o pipefail # avoid hangup on 'yes' killing this script | 604 | set +o pipefail # avoid hangup on 'yes' killing this script |
| 597 | yes '' | /tmp/guix-install.sh | 605 | yes '' | /tmp/guix-install.sh |
