aboutsummaryrefslogtreecommitdiffstats
path: root/tools/make-pxeboot.sh
blob: 0d53e6afbbe84c2585e419b27db819d5c7563ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# TODO: This tool assumes that the bootstrap box
# is used as the PXE server. This should be updated
# to use the configuration information in config.local.pm ...

apt-get install tftpd-hpa
apt-get install nfs-kernel-server

cat << END > /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"
END

/etc/init.d/tftpd-hpa restart

mkdir -p /var/lib/tftpboot
cp -R pxe/* /var/lib/tftpboot

tools/fetch-debinstall.sh /var/lib/tftpboot/debian
# tools/fetch-ubuntulive.sh <- this tool does not exist xD
# NOTE! The pxe/ directory contains an 'ubuntu' menu...
# The files required to booting Ubuntu installer or live
# must be fetched manually (for now)