Browse code

improve docs

Anthony Young authored on 2011/10/14 15:07:56
Showing 1 changed files
... ...
@@ -685,7 +685,9 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
685 685
     # Extract ami and aki files
686 686
     tar -zxf $FILES/$IMAGE_FNAME -C $FILES/images
687 687
 
688
-    # Upload to glance with the glance cli tool.
688
+    # Use glance client to add the kernel the root filesystem.
689
+    # We parse the results of the first upload to get the glance ID of the
690
+    # kernel for use when uploading the root filesystem.
689 691
     RVAL=`glance add -A $SERVICE_TOKEN name="$IMAGE_NAME-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/$IMAGE_NAME-vmlinuz*`
690 692
     KERNEL_ID=`echo $RVAL | cut -d":" -f2 | tr -d " "`
691 693
     glance add -A $SERVICE_TOKEN name="$IMAGE_NAME" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID < $FILES/images/$IMAGE_NAME.img