Browse code

Change hard-coded natty to DIST_NAME

Dean Troyer authored on 2011/10/22 04:29:30
Showing 1 changed files
... ...
@@ -49,7 +49,7 @@ IMAGE_FNAME=$DIST_NAME.raw
49 49
 CONTAINER_NAME=${CONTAINER_NAME:-kvmstack}
50 50
 
51 51
 # Original version of built image
52
-BASE_IMAGE=$KVMSTACK_DIR/images/natty.raw
52
+BASE_IMAGE=$KVMSTACK_DIR/images/$DIST_NAME.raw
53 53
 
54 54
 # Copy of base image, which we pre-install with tasty treats
55 55
 BASE_IMAGE_COPY=$IMAGES_DIR/$DIST_NAME.$CONTAINER_NAME.raw.copy
... ...
@@ -70,8 +70,8 @@ mkdir -p $COPY_DIR
70 70
 # Create the base image if it does not yet exist
71 71
 if [ ! -e $IMAGES_DIR/$IMAGE_FNAME ]; then
72 72
     cd $TOOLS_DIR
73
-    ./make_image.sh -m -r 5000  natty raw
74
-    mv natty.raw $BASE_IMAGE
73
+    ./make_image.sh -m -r 5000  $DIST_NAME raw
74
+    mv $DIST_NAME.raw $BASE_IMAGE
75 75
     cd $TOP_DIR
76 76
 fi
77 77
 
... ...
@@ -306,7 +306,7 @@ chmod 755 $RUN_SH
306 306
 RC_LOCAL=$ROOTFS/etc/init.d/local
307 307
 cat > $RC_LOCAL <<EOF
308 308
 #!/bin/sh -e
309
-# Reboot if this is our first run to enable console log on natty :(
309
+# Reboot if this is our first run to enable console log on $DIST_NAME :(
310 310
 if [ ! -e /root/firstlaunch ]; then
311 311
     touch /root/firstlaunch
312 312
     reboot -f