From 9a2198054c1fa9a58ac8b440c371cebb1cb28dee Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 26 Sep 2024 13:24:09 -0300 Subject: [PATCH] Revert "pxe: we know the server host, is in the config" This reverts commit 5399d544ee4bec1e427686155d629c118d2a70f1. --- deploy-workbench.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy-workbench.sh b/deploy-workbench.sh index 5723220..9b736f4 100755 --- a/deploy-workbench.sh +++ b/deploy-workbench.sh @@ -279,7 +279,8 @@ if [ -d /run/live/medium ]; then mount --bind /run/live/medium /mnt # debian live nfs path is readonly, do a trick # to make snapshots subdir readwrite - mount ${server_ip}:/snapshots /run/live/medium/snapshots + nfs_host="\$(df -hT | grep nfs | cut -f1 -d: | head -n1)" + mount \${nfs_host}:/snapshots /run/live/medium/snapshots fi # clearly specify the right working directory, used in the python script as os.getcwd() cd /mnt