diff options
author | kremlin <ian@kremlin.cc> | 2014-08-07 17:21:11 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2014-08-07 17:21:11 +0800 |
commit | a194b1569ed05f64e79b0a8419612d42945efe8a (patch) | |
tree | 371e89b42c0b047f4198aef0eee8de0d37ac5fa3 /src | |
parent | 8504b5df9e731eda5c7205b4299716d71457a131 (diff) | |
download | systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar.gz systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar.bz2 systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar.lz systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar.xz systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.tar.zst systembsd-a194b1569ed05f64e79b0a8419612d42945efe8a.zip |
recatagorize QEMU/KVM/etc. to correct baremetal classification
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/hostnamed/hostnamed.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 432c53b..69c7cc2 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -90,14 +90,15 @@ gchar *KERN_NAME, *KERN_RELEASE, *KERN_VERS; * but we will worry about those later */ const struct SYSCTL_LOOKUP_TABLE chassis_indicator_table[] = { - { "QEMU Virtual CPU", "container", NULL, FALSE, FALSE }, /* could be QEMU running in userspace or as part of KVM */ + { "QEMU Virtual CPU", "vm", NULL, FALSE, FALSE }, /* could be QEMU running in userspace or as part of KVM */ { "KVM", "vm", "drive-multidisk", FALSE, FALSE }, { "SmartDC HVM", "vm", "drive-multidisk", TRUE, TRUE }, /* oracle solaris kvm */ - { "VirtualBox", "container", "drive-optical", TRUE, TRUE }, - { "VMware, Inc.", "container", "drive-optical", TRUE, TRUE }, - { "VMware Virtual Platform", "container", "drive-optical", TRUE, TRUE }, - { "Parallels", "container", "drive-optical", TRUE, TRUE } /* need verification */ -}; + { "VirtualBox", "vm", "drive-multidisk", TRUE, TRUE }, + { "VMware, Inc.", "vm", "drive-multidisk", TRUE, TRUE }, + { "VMware Virtual Platform", "vm", "drive-multidisk", TRUE, TRUE }, + { "Parallels", "vm", "drive-multidisk", TRUE, TRUE }, /* need verification */ + { "Xen", "vm", "drive-multidisk", TRUE, TRUE } +}; /* TODO: chroots, etc. are the actual "containers", add them */ /* archs to check against when determining if machine is server */ const gchar *server_archs[] = { |