From 407ee7ee5e279554afa1d91a6760156b57cbef10 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Thu, 29 Sep 2011 16:38:59 -0500 Subject: [PATCH] calls make_image.sh to build the base install --- build_pxe_ramdisk.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_pxe_ramdisk.sh b/build_pxe_ramdisk.sh index 648fc3b76b..197bfc94e4 100755 --- a/build_pxe_ramdisk.sh +++ b/build_pxe_ramdisk.sh @@ -6,17 +6,19 @@ if [ ! "$#" -eq "1" ]; then exit 1 fi +PROGDIR=`dirname $0` + # Source params source ./stackrc # clean install of natty if [ ! -d natty-base ]; then - debootstrap natty natty-base + $PROGDIR/make_image.sh -C natty natty-base # copy kernel modules... # NOTE(ja): is there a better way to do this? cp -pr /lib/modules/`uname -r` natty-base/lib/modules - cp files/sources.list natty-base/etc/apt/sources.list - chroot natty-base apt-get update + # a simple password - pass + echo root:pass | chroot natty-base chpasswd fi # prime natty with as many apt/pips as we can