Compare commits

..

No commits in common. "e8433b3bbe2be6e666cb9d24e6619b190052b4fb" and "e99ebaab5c45702db1ed515bde7b0e9a36ca171e" have entirely different histories.

View file

@ -29,14 +29,11 @@ END
}
install_tftp() {
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
# 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)
END
}
@ -47,7 +44,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