From a70179223a8c79b60097c10d05e06a095e74279d Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 25 Sep 2024 13:37:22 -0300 Subject: [PATCH] pxe: rsync to copy squashfs --- pxe/install-pxe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index cea532c..ac06d7b 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -10,7 +10,7 @@ set -x install_dependencies() { apt update - apt install -y wget dnsmasq nfs-kernel-server + apt install -y wget dnsmasq nfs-kernel-server rsync } backup_file() { @@ -56,7 +56,7 @@ END extract_live_parts_for_tftp() { cp -fv "${PXE_DIR}/../iso/staging/live/vmlinuz" "${tftp_path}/" cp -fv "${PXE_DIR}/../iso/staging/live/initrd" "${tftp_path}/" - ln -sfv "${nfs_path}/live/" "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" + rsync -av "${PXE_DIR}/../iso/staging/live/filesystem.squashfs" "${nfs_path}/live/" } install_netboot() {