feature: workbench pxe #2

Merged
pedro merged 83 commits from pxe into main 2024-09-28 02:19:31 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 8e4186d9d4 - Show all commits

View File

@ -54,9 +54,9 @@ END
} }
extract_live_parts_for_tftp() { extract_live_parts_for_tftp() {
ln -sfv "$(pwd)/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/" ln -sfv "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/"
ln -sfv "$(pwd)/../iso/staging/live/vmlinuz" "${tftp_path}/" ln -sfv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/"
ln -sfv "$(pwd)/../iso/staging/live/initrd.img" "${tftp_path}/" ln -sfv "${PXE_DIR}/../iso/staging/live/initrd.img" "${tftp_path}/"
} }
install_netboot() { install_netboot() {
@ -80,6 +80,7 @@ END
init_config() { init_config() {
# get where the script is # get where the script is
cd "$(dirname "${0}")" cd "$(dirname "${0}")"
PXE_DIR="$(pwd)"
if [ -f ./.env ]; then if [ -f ./.env ]; then
. ./.env . ./.env