From ec74eef1870112478a2593bcaa622efbc260bd94 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Fri, 11 Nov 2011 13:51:55 -0800 Subject: [PATCH] build pxe env tweaks --- tools/{build_pxe_boot.sh => build_pxe_env.sh} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename tools/{build_pxe_boot.sh => build_pxe_env.sh} (93%) diff --git a/tools/build_pxe_boot.sh b/tools/build_pxe_env.sh similarity index 93% rename from tools/build_pxe_boot.sh rename to tools/build_pxe_env.sh index ab6409831a..1ab51f8954 100755 --- a/tools/build_pxe_boot.sh +++ b/tools/build_pxe_env.sh @@ -1,11 +1,14 @@ #!/bin/bash -e -# build_pxe_boot.sh - Create a PXE boot environment +# build_pxe_env.sh - Create a PXE boot environment # -# build_pxe_boot.sh destdir +# build_pxe_env.sh destdir +# +# Requires Ubuntu Oneiric # -# Assumes syslinux is installed # Only needs to run as root if the destdir permissions require it +dpkg -l syslinux || apt-get install -y syslinux + DEST_DIR=${1:-/tmp}/tftpboot PXEDIR=${PXEDIR:-/var/cache/devstack/pxe} OPWD=`pwd`