more updates to how images are installed
This commit is contained in:
parent
543d7d44e9
commit
74e965f0db
1 changed files with 4 additions and 5 deletions
9
stack.sh
9
stack.sh
|
@ -418,14 +418,13 @@ if [[ "$ENABLED_SERVICES" =~ "g-reg" ]]; then
|
|||
|
||||
# extract ami-tty/image, aki-tty/image & ari-tty/image
|
||||
mkdir -p $FILES/images
|
||||
cd $FILES/images
|
||||
tar -zxf $DEST/tty.tgz
|
||||
tar -zxf $FILES/tty.tgz -C $FILES/images
|
||||
|
||||
# add images to glance
|
||||
# FIXME: kernel/ramdisk is hardcoded - use return result from add
|
||||
glance add name="tty-kernel" is_public=true container_format=aki disk_format=aki < aki-tty/image
|
||||
glance add name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < ari-tty/image
|
||||
glance add name="tty" is_public=true container_format=ami disk_format=ami kernel_id=1 ramdisk_id=2 < ami-tty/image
|
||||
glance add name="tty-kernel" is_public=true container_format=aki disk_format=aki < $FILES/images/aki-tty/image
|
||||
glance add name="tty-ramdisk" is_public=true container_format=ari disk_format=ari < $FILES/images/ari-tty/image
|
||||
glance add name="tty" is_public=true container_format=ami disk_format=ami kernel_id=1 ramdisk_id=2 < $FILES/images/ami-tty/image
|
||||
fi
|
||||
|
||||
# Using the cloud
|
||||
|
|
Loading…
Reference in a new issue