fix grabbing kernel/ramdisk
This commit is contained in:
parent
644b8e831c
commit
014e9130db
1 changed files with 3 additions and 7 deletions
10
stack.sh
10
stack.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue