summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-02-24 14:19:20 -0500
committerScott Moser <smoser@brickies.net>2017-02-24 22:51:25 -0500
commit5dd5b2cb539a84ed59f2b3181020d2bd18989718 (patch)
tree0f538182ea897e7eb05f18812c76be29776220c6 /tools
parent9bb55c6c45bcc5e310cf7e4d42cad53759dcca15 (diff)
downloadvyos-cloud-init-5dd5b2cb539a84ed59f2b3181020d2bd18989718.tar.gz
vyos-cloud-init-5dd5b2cb539a84ed59f2b3181020d2bd18989718.zip
Identify Brightbox as an Ec2 datasource user.
Brightbox will identify their platform to the guest by setting the product serial to a string that ends with 'brightbox.com'. LP: #1661693
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ds-identify5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index dfa856ff..c39956fc 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -639,6 +639,11 @@ ec2_identify_platform() {
local default="$1"
local serial="${DI_DMI_PRODUCT_SERIAL}"
+ # brightbox https://bugs.launchpad.net/cloud-init/+bug/1661693
+ case "$serial" in
+ *brightbox.com) _RET="Brightbox"; return 0;;
+ esac
+
# AWS http://docs.aws.amazon.com/AWSEC2/
# latest/UserGuide/identify_ec2_instances.html
local uuid="" hvuuid="$PATH_ROOT/sys/hypervisor/uuid"