Browse code

calls make_image.sh to build the base install

Dean Troyer authored on 2011/09/30 06:38:59
Showing 1 changed files
... ...
@@ -6,17 +6,19 @@ if [ ! "$#" -eq "1" ]; then
6 6
     exit 1
7 7
 fi
8 8
 
9
+PROGDIR=`dirname $0`
10
+
9 11
 # Source params
10 12
 source ./stackrc
11 13
 
12 14
 # clean install of natty
13 15
 if [ ! -d natty-base ]; then
14
-    debootstrap natty natty-base
16
+    $PROGDIR/make_image.sh -C natty natty-base
15 17
     # copy kernel modules...  
16 18
     # NOTE(ja): is there a better way to do this?
17 19
     cp -pr /lib/modules/`uname -r` natty-base/lib/modules
18
-    cp files/sources.list natty-base/etc/apt/sources.list
19
-    chroot natty-base apt-get update
20
+    # a simple password - pass
21
+    echo root:pass | chroot natty-base chpasswd
20 22
 fi
21 23
 
22 24
 # prime natty with as many apt/pips as we can