From c70279ea945a4fe69f7f3a49b9455d8e45ccf8e6 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 25 Sep 2024 12:41:49 -0300 Subject: [PATCH] pxe: fix symlinks live --- pxe/install-pxe.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index e60050c..4349476 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -54,9 +54,9 @@ END } extract_live_parts_for_tftp() { - ln -sfv "$(pwd)/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/" - ln -sfv "$(pwd)/../iso/staging/live/vmlinuz" "${tftp_path}/" - ln -sfv "$(pwd)/../iso/staging/live/initrd.img" "${tftp_path}/" + ln -sfv "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/" + ln -sfv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/" + ln -sfv "${PXE_DIR}/../iso/staging/live/initrd.img" "${tftp_path}/" } install_netboot() { @@ -80,6 +80,7 @@ END init_config() { # get where the script is cd "$(dirname "${0}")" + PXE_DIR="$(pwd)" if [ -f ./.env ]; then . ./.env