Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openstack-build-ubuntu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
David Johnson
openstack-build-ubuntu
Commits
27c65db3
Commit
27c65db3
authored
Feb 19, 2016
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle another glance args change in Liberty.
parent
f8e688d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
14 deletions
+36
-14
setup-basic-aarch64.sh
setup-basic-aarch64.sh
+36
-14
No files found.
setup-basic-aarch64.sh
View file @
27c65db3
...
@@ -312,10 +312,15 @@ fi
...
@@ -312,10 +312,15 @@ fi
echo
"*** Importing image with cloud-guest-utils ..."
echo
"*** Importing image with cloud-guest-utils ..."
glance image-create
--name
trusty-server
${
GLANCEOPTS
}
--progress
--file
$out
--disk-format
ami
--container-format
ami
glance image-create
--name
trusty-server
${
GLANCEOPTS
}
--progress
--file
$out
--disk-format
ami
--container-format
ami
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
trusty-server
if
[
$OSVERSION
-ge
$OSLIBERTY
]
;
then
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
trusty-server
TRUSTY_SERVER_ARG
=
`
glance image-list |
awk
' / trusty-server / { print $2 }'
`
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
trusty-server
else
glance image-update
--property
root_device_name
=
/dev/vda1 trusty-server
TRUSTY_SERVER_ARG
=
'trusty-server'
fi
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
$TRUSTY_SERVER_ARG
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
$TRUSTY_SERVER_ARG
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
$TRUSTY_SERVER_ARG
glance image-update
--property
root_device_name
=
/dev/vda1
$TRUSTY_SERVER_ARG
echo
"*** Creating image with cloud-guest-utils AND multi-nic support ..."
echo
"*** Creating image with cloud-guest-utils AND multi-nic support ..."
...
@@ -384,29 +389,46 @@ umount mnt
...
@@ -384,29 +389,46 @@ umount mnt
echo
"*** Importing image with cloud-guest-utils AND multi-nic support ..."
echo
"*** Importing image with cloud-guest-utils AND multi-nic support ..."
glance image-create
--name
trusty-server-multi-nic
${
GLANCEOPTS
}
--progress
--file
$out
--disk-format
ami
--container-format
ami
glance image-create
--name
trusty-server-multi-nic
${
GLANCEOPTS
}
--progress
--file
$out
--disk-format
ami
--container-format
ami
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
trusty-server-multi-nic
if
[
$OSVERSION
-ge
$OSLIBERTY
]
;
then
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
trusty-server-multi-nic
TRUSTY_SERVER_MN_ARG
=
`
glance image-list |
awk
' / trusty-server-multi-nic / { print $2 }'
`
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
trusty-server-multi-nic
else
glance image-update
--property
root_device_name
=
/dev/vda1 trusty-server-multi-nic
TRUSTY_SERVER_MN_ARG
=
'trusty-server-multi-nic'
fi
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
$TRUSTY_SERVER_MN_ARG
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
$TRUSTY_SERVER_MN_ARG
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
$TRUSTY_SERVER_MN_ARG
glance image-update
--property
root_device_name
=
/dev/vda1
$TRUSTY_SERVER_MN_ARG
if
[
${
BUILD_AARCH64_FROM_CORE
}
=
1
]
;
then
if
[
${
BUILD_AARCH64_FROM_CORE
}
=
1
]
;
then
echo
"*** Importing non-ssh image ..."
echo
"*** Importing non-ssh image ..."
glance image-create
--name
ubuntu-core-14.04.1-core-arm64
${
GLANCEOPTS
}
--progress
--file
$out
.1
--disk-format
ami
--container-format
ami
glance image-create
--name
ubuntu-core-14.04.1-core-arm64
${
GLANCEOPTS
}
--progress
--file
$out
.1
--disk-format
ami
--container-format
ami
if
[
$OSVERSION
-ge
$OSLIBERTY
]
;
then
IMAGEARG
=
`
glance image-list |
awk
' / ubuntu-core-14.04.1-core-arm64 / { print $2 }'
`
else
IMAGEARG
=
'ubuntu-core-14.04.1-core-arm64'
fi
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
ubuntu-core-14.04.1-core-arm64
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
ubuntu-core-14.04.1-core-arm64
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
ubuntu-core-14.04.1-core-arm64
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
$IMAGEARG
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
ubuntu-core-14.04.1-core-arm64
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
$IMAGEARG
glance image-update
--property
root_device_name
=
/dev/vda1
ubuntu-core-14.04.1-core-arm64
glance image-update
--property
root_device_name
=
/dev/vda1
$IMAGEARG
echo
"*** Importing image with sshd ..."
echo
"*** Importing image with sshd ..."
glance image-create
--name
ubuntu-core-14.04.1-core-arm64-sshd
${
GLANCEOPTS
}
--progress
--file
$out
.2
--disk-format
ami
--container-format
ami
glance image-create
--name
ubuntu-core-14.04.1-core-arm64-sshd
${
GLANCEOPTS
}
--progress
--file
$out
.2
--disk-format
ami
--container-format
ami
if
[
$OSVERSION
-ge
$OSLIBERTY
]
;
then
IMAGEARG
=
`
glance image-list |
awk
' / ubuntu-core-14.04.1-core-arm64-sshd / { print $2 }'
`
else
IMAGEARG
=
'ubuntu-core-14.04.1-core-arm64-sshd'
fi
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
ubuntu-core-14.04.1-core-arm64-sshd
glance image-update
--property
kernel_args
=
"console=ttyAMA0 root=/dev/sda"
ubuntu-core-14.04.1-core-arm64-sshd
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
ubuntu-core-14.04.1-core-arm64-sshd
glance image-update
--property
kernel_id
=
${
KERNEL_ID
}
$IMAGEARG
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
ubuntu-core-14.04.1-core-arm64-sshd
glance image-update
--property
ramdisk_id
=
${
RAMDISK_ID
}
$IMAGEARG
glance image-update
--property
root_device_name
=
/dev/vda1
ubuntu-core-14.04.1-core-arm64-sshd
glance image-update
--property
root_device_name
=
/dev/vda1
$IMAGEARG
fi
fi
umount mnt
umount mnt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment