pxe: add FORCE for netboot

This commit is contained in:
pedro 2024-09-24 13:44:05 -03:00
parent 0d8dd533ed
commit cc070c2cce

View file

@ -43,7 +43,7 @@ END
install_netboot() {
# if you want to refresh install, remove or move dir
if [ ! -d "${tftp_path}" ]; then
if [ ! -d "${tftp_path}" ] || [ "${FORCE}" ]; then
mkdir -p "${tftp_path}"
cd "${tftp_path}"
wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz