Compare commits

..

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

View file

@ -29,14 +29,11 @@ END
} }
install_tftp() { install_tftp() {
# TODO creo que se puede hacer un fichero de config específico
cat > /etc/dnsmasq.d/pxe-tftp <<END # podría ser algo como /etc/dnsmasq.conf.d/my-pxe-server ?
port=0 #backup_file /etc/dnsmasq.conf
dhcp-range=${nfs_allowed_lan%/*},proxy cat /etc/exports <<END
dhcp-boot=pxelinux.0 ${nfs_path} ${nfs_allowed_lan}(rw,sync,no_subtree_check,no_root_squash)
pxe-service=x86PC,"Network Boot",pxelinux
enable-tftp
tftp-root=/srv/tftp
END END
} }
@ -47,7 +44,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