aws: Detect AWS from dmidecode information.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 31 Oct 2018 15:04:24 +0000 (15:04 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 31 Oct 2018 15:09:15 +0000 (15:09 +0000)
commit147c648e950ef45b7a5b7b3e8cb30b89c435593b
treeabd938bc583b7769cf339c052f27eef83f1985c1
parent5efe9f7a58cd0cdc6f4c279c7f0a69e57fbda56f
aws: Detect AWS from dmidecode information.

Move the AWS detection out from under Xen.  AWS runs on KVM and
baremetal these days.  The dmidecode information for KVM and baremetal
is a little bit different so we also need to adjust the test for that
case.

Typical SMBIOS info for Xen:

BIOS Information
        Vendor: Xen
        Version: 4.2.amazon

Typical SMBIOS info for KVM and baremetal:

BIOS Information
        Vendor: Amazon EC2
        Version: 1.0

Thanks: Vitaly Kuznetsov, Jon Masters.
virt-what.in
virt-what.pod