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 Check for right sysctl node...



details:   https://anonhg.NetBSD.org/src/rev/e8b5160f6f83
branches:  trunk
changeset: 368465:e8b5160f6f83
user:      hgutch <hgutch%NetBSD.org@localhost>
date:      Wed Jul 13 18:51:03 2022 +0000

description:
Check for right sysctl node to make live image work OOTB on OpenStack:

  machdep.dmi.system-product = OpenStack Compute

diffstat:

 distrib/amd64/liveimage/emuimage/rc.conf.emuimage |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 34e2cfc88c93 -r e8b5160f6f83 distrib/amd64/liveimage/emuimage/rc.conf.emuimage
--- a/distrib/amd64/liveimage/emuimage/rc.conf.emuimage Wed Jul 13 14:11:46 2022 +0000
+++ b/distrib/amd64/liveimage/emuimage/rc.conf.emuimage Wed Jul 13 18:51:03 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc.conf.emuimage,v 1.1 2021/07/24 16:13:44 jmcneill Exp $
+# $NetBSD: rc.conf.emuimage,v 1.2 2022/07/13 18:51:03 hgutch Exp $
 
 is_ec2() {
        val=NO
@@ -6,6 +6,7 @@
        for node in machdep.dmi.system-vendor \
                    machdep.dmi.system-version \
                    machdep.dmi.bios-version \
+                   machdep.dmi.system-product \
                    machdep.xen.version ; do
                if /sbin/sysctl -q $node; then
                        nodeval="$(/sbin/sysctl -n $node | tr '[A-Z]' '[a-z]')"



Home | Main Index | Thread Index | Old Index