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() { 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 ? cat > /etc/dnsmasq.d/pxe-tftp <<END
#backup_file /etc/dnsmasq.conf port=0
cat /etc/exports <<END dhcp-range=${nfs_allowed_lan%/*},proxy
${nfs_path} ${nfs_allowed_lan}(rw,sync,no_subtree_check,no_root_squash) dhcp-boot=pxelinux.0
pxe-service=x86PC,"Network Boot",pxelinux
enable-tftp
tftp-root=/srv/tftp
END END
} }
@ -44,7 +47,7 @@ install_netboot() {
cd "${tftp_path}" cd "${tftp_path}"
wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz wget http://ftp.debian.org/debian/dists/${VERSION_CODENAME}/main/installer-amd64/current/images/netboot/netboot.tar.gz
tar xvf netboot.tar.gz tar xvf netboot.tar.gz
cat "${tftp_path}/pxelinux.cfg/default" <<END cat > "${tftp_path}/pxelinux.cfg/default" <<END
default wb default wb
label wb label wb