Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/amd64/liveimage/emuimage Recognize OpenStack too (it...



details:   https://anonhg.NetBSD.org/src/rev/8d2d4f53e618
branches:  trunk
changeset: 984659:8d2d4f53e618
user:      rhialto <rhialto%NetBSD.org@localhost>
date:      Thu Jul 15 17:20:25 2021 +0000

description:
Recognize OpenStack too (it also has a metadata service).

Typical values for machdep.dmi are:

machdep.dmi.system-vendor = OpenStack Foundation
machdep.dmi.system-product = OpenStack Nova
machdep.dmi.system-version = 17.0.12
machdep.dmi.system-serial = c46130fb-a56e-43f2-9d98-492d24656b9c
machdep.dmi.system-uuid = 680b8119-0d74-4f78-a6fd-e79dfede905c
machdep.dmi.bios-vendor = SeaBIOS
machdep.dmi.bios-version = 1.10.2-1ubuntu1
machdep.dmi.bios-date = 20140401
machdep.dmi.chassis-vendor = QEMU
machdep.dmi.chassis-type = QEMU
machdep.dmi.chassis-version = pc-i440fx-2.8
machdep.dmi.processor-vendor = QEMU
machdep.dmi.processor-version = pc-i440fx-2.8
machdep.dmi.processor-frequency = 2000 MHz

diffstat:

 distrib/amd64/liveimage/emuimage/ec2_init |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r d4242afb695a -r 8d2d4f53e618 distrib/amd64/liveimage/emuimage/ec2_init
--- a/distrib/amd64/liveimage/emuimage/ec2_init Thu Jul 15 17:09:08 2021 +0000
+++ b/distrib/amd64/liveimage/emuimage/ec2_init Thu Jul 15 17:20:25 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ec2_init,v 1.2 2020/09/09 13:25:48 jmcneill Exp $
+# $NetBSD: ec2_init,v 1.3 2021/07/15 17:20:25 rhialto Exp $
 
 is_ec2() {
        val=NO
@@ -13,6 +13,10 @@
                        *amazon*)
                                val=YES
                                ;;
+                       # OpenStack is not EC2 but it does have a metadata service.
+                       *openstack*)
+                               val=YES
+                               ;;
                        esac
                fi
        done



Home | Main Index | Thread Index | Old Index