Revert "pxe: we know the server host, is in the config"

This reverts commit 5399d544ee.
This commit is contained in:
pedro 2024-09-26 13:24:09 -03:00
parent cde3b06fba
commit 9a2198054c

View file

@ -279,7 +279,8 @@ if [ -d /run/live/medium ]; then
mount --bind /run/live/medium /mnt mount --bind /run/live/medium /mnt
# debian live nfs path is readonly, do a trick # debian live nfs path is readonly, do a trick
# to make snapshots subdir readwrite # 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 fi
# clearly specify the right working directory, used in the python script as os.getcwd() # clearly specify the right working directory, used in the python script as os.getcwd()
cd /mnt cd /mnt