From f8937a2559d2d4b49e607ec70fd5beb28d2ff029 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 25 Sep 2024 12:57:52 -0300 Subject: [PATCH] pxe: fix netboot conditional --- pxe/install-pxe.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index f20de40..df8a321 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -64,7 +64,7 @@ install_netboot() { if [ ! -d "${tftp_path}" ] || [ "${FORCE:-}" ]; then mkdir -p "${tftp_path}/pxelinux.cfg" cd "${tftp_path}" - if [ -f "${tftp_path}/netboot.tar.gz" ]; then + if [ ! -f "${tftp_path}/netboot.tar.gz" ]; then wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz tar xvf netboot.tar.gz rm -rf "${tftp_path}/pxelinux.cfg"