From e0efe853b805ca3c66155b7307a67af5175b3f46 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 23 Feb 2017 17:13:52 -0500 Subject: tools/ds-identify: read the seed directory on Ec2 This just adds checking of the Ec2 seed directory. --- tools/ds-identify | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ds-identify b/tools/ds-identify index f2878745..c15ba5c0 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -592,8 +592,11 @@ dscheck_Bigstep() { dscheck_Ec2() { # http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify_ec2_instances.html # http://paste.ubuntu.com/23630859/ - local uuid="" hvuuid="$PATH_ROOT/sys/hypervisor/uuid" + + check_seed_dir "ec2" meta-data user-data && return ${DS_FOUND} is_container && return ${DS_NOT_FOUND} + + local uuid="" hvuuid="$PATH_ROOT/sys/hypervisor/uuid" # if the (basically) xen specific /sys/hypervisor/uuid starts with 'ec2' if [ -r "$hvuuid" ] && read uuid < "$hvuuid" && [ "${uuid#ec2}" != "$uuid" ]; then -- cgit v1.2.3