#!/bin/bash # build_pxe_boot.sh - Create a PXE boot environment # # build_pxe_boot.sh destdir # # Assumes syslinux is installed # Only needs to run as root if the destdir permissions require it UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu/dists/natty/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64 MEMTEST_VER=4.10 MEMTEST_BIN=memtest86+-${MEMTEST_VER}.bin MEMTEST_URL=http://www.memtest.org/download/${MEMTEST_VER}/ DEST_DIR=${1:-/tmp}/tftpboot OPWD=`pwd` mkdir -p $DEST_DIR/pxelinux.cfg cd $DEST_DIR for i in memdisk menu.c32 pxelinux.0; do cp -p /usr/lib/syslinux/$i $DEST_DIR done DEFAULT=$DEST_DIR/pxelinux.cfg/default cat >$DEFAULT <>$DEFAULT <>$DEFAULT <>$DEFAULT <>$DEFAULT <