fix grabbing kernel/ramdisk

This commit is contained in:
Jesse Andrews 2011-10-02 19:23:22 -04:00
parent 644b8e831c
commit 014e9130db

View file

@ -576,13 +576,9 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
tar -zxf $FILES/tty.tgz -C $FILES/images
# add a debugging images to glance
KERNEL_ID=glance add -A $SERVICE_TOKEN name="tty-kernel" is_public=true \
container_format=aki disk_format=aki < $FILES/images/aki-tty/image
RAMDISK_ID=glance add -A $SERVICE_TOKEN name="tty-ramdisk" is_public=true \
container_format=ari disk_format=ari < $FILES/images/ari-tty/image
glance add -A $SERVICE_TOKEN name="tty" is_public=true container_format=ami \
disk_format=ami kernel_id=$KERNEL_ID \
ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
KERNEL_ID=`glance add -A $SERVICE_TOKEN name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image`
RAMDISK_ID=`glance add -A $SERVICE_TOKEN name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image`
glance add -A $SERVICE_TOKEN name="tty" is_public=true container_format=ami disk_format=ami kernel_id=$KERNEL_ID ramdisk_id=$RAMDISK_ID < $FILES/images/ami-tty/image
fi
# Using the cloud