pxe: fix netboot conditional

This commit is contained in:
pedro 2024-09-25 12:57:52 -03:00
parent 7bc3e4b69d
commit f8937a2559

View file

@ -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"