Compare commits

...

2 commits

Author SHA1 Message Date
pedro e8433b3bbe bugfix bad netboot config 2024-09-24 12:14:33 -03:00
pedro c6f0450e1e add dnsmasq config 2024-09-24 12:14:24 -03:00

View file

@ -29,11 +29,14 @@ END
}
install_tftp() {
# TODO creo que se puede hacer un fichero de config específico
# podría ser algo como /etc/dnsmasq.conf.d/my-pxe-server ?
#backup_file /etc/dnsmasq.conf
cat /etc/exports <<END
${nfs_path} ${nfs_allowed_lan}(rw,sync,no_subtree_check,no_root_squash)
cat > /etc/dnsmasq.d/pxe-tftp <<END
port=0
dhcp-range=${nfs_allowed_lan%/*},proxy
dhcp-boot=pxelinux.0
pxe-service=x86PC,"Network Boot",pxelinux
enable-tftp
tftp-root=/srv/tftp
END
}
@ -44,7 +47,7 @@ install_netboot() {
cd "${tftp_path}"
wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz
tar xvf netboot.tar.gz
cat "${tftp_path}/pxelinux.cfg/default" <<END
cat > "${tftp_path}/pxelinux.cfg/default" <<END
default wb
label wb