From 5611951aefba515a994b1600ff4dd21e5a601cff Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Tue, 11 Oct 2011 19:39:34 -0500 Subject: [PATCH 2/3] Move utility scripts to tools/ --- build_nfs.sh => tools/build_nfs.sh | 0 build_pxe_boot.sh => tools/build_pxe_boot.sh | 2 +- build_pxe_ramdisk.sh => tools/build_ramdisk.sh | 1 + make_image.sh => tools/make_image.sh | 0 upload_image.sh => tools/upload_image.sh | 0 5 files changed, 2 insertions(+), 1 deletion(-) rename build_nfs.sh => tools/build_nfs.sh (100%) rename build_pxe_boot.sh => tools/build_pxe_boot.sh (97%) rename build_pxe_ramdisk.sh => tools/build_ramdisk.sh (98%) rename make_image.sh => tools/make_image.sh (100%) rename upload_image.sh => tools/upload_image.sh (100%) diff --git a/build_nfs.sh b/tools/build_nfs.sh similarity index 100% rename from build_nfs.sh rename to tools/build_nfs.sh diff --git a/build_pxe_boot.sh b/tools/build_pxe_boot.sh similarity index 97% rename from build_pxe_boot.sh rename to tools/build_pxe_boot.sh index 4feb14d2fc..84aa43b44d 100755 --- a/build_pxe_boot.sh +++ b/tools/build_pxe_boot.sh @@ -56,7 +56,7 @@ fi cp -p $PXEDIR/vmlinuz-${KVER} $DEST_DIR/ubuntu if [ ! -r $PXEDIR/stack-initrd.gz ]; then cd $OPWD - sudo $PROGDIR/build_pxe_ramdisk.sh $PXEDIR/stack-initrd.gz + sudo $PROGDIR/build_ramdisk.sh $PXEDIR/stack-initrd.gz fi cp -p $PXEDIR/stack-initrd.gz $DEST_DIR/ubuntu cat >>$DEFAULT < Date: Tue, 11 Oct 2011 20:28:39 -0500 Subject: [PATCH 3/3] Cleanup PXE boot config --- tools/build_pxe_boot.sh | 46 ++++++----------------------------------- 1 file changed, 6 insertions(+), 40 deletions(-) diff --git a/tools/build_pxe_boot.sh b/tools/build_pxe_boot.sh index 84aa43b44d..0653664c0c 100755 --- a/tools/build_pxe_boot.sh +++ b/tools/build_pxe_boot.sh @@ -4,15 +4,8 @@ # build_pxe_boot.sh [-k kernel-version] destdir # # Assumes syslinux is installed -# Assumes devstack files are in `pwd`/pxe # 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}/ - KVER=`uname -r` if [ "$1" = "-k" ]; then KVER=$2 @@ -30,8 +23,8 @@ 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 <$CFG <>$DEFAULT <>$CFG <>$DEFAULT <>$CFG <>$DEFAULT <>$DEFAULT <>$DEFAULT <>$CFG <