mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-06-19 17:34:07 +02:00
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>
This commit is contained in:
committed by
Maxim Cournoyer
parent
c8f53f4b2e
commit
3e1befe1d8
@@ -592,6 +592,14 @@ mkdir -p /gnu/store
|
||||
mount --bind /mnt/tmp/gnu/store /gnu/store
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user