diff options
author | kremlin <ian@kremlin.cc> | 2014-08-08 11:33:42 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2014-08-08 11:33:42 +0800 |
commit | 2e337f4639545d3b389ad84669449df8186decb1 (patch) | |
tree | f55224d577af4d007d903246feb6967552f83a53 | |
parent | df95f94a8dd9d6e6a56661f3ed9ae4ad37b8f2fc (diff) | |
download | systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar.gz systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar.bz2 systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar.lz systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar.xz systembsd-2e337f4639545d3b389ad84669449df8186decb1.tar.zst systembsd-2e337f4639545d3b389ad84669449df8186decb1.zip |
minor, make xen an uncertainty and move a comment that was misplaced
-rw-r--r-- | src/interfaces/hostnamed/hostnamed.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 6d91173..0e5c93c 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -34,7 +34,6 @@ #include "hostnamed-gen.h" #include "hostnamed.h" -/* add any sysctl strings that suggest virtualization here */ /* format: { * (1) string to be matched against runtime machine's sysctl output. * can be either the exact string or a substring contained @@ -88,6 +87,8 @@ gchar *KERN_NAME, *KERN_RELEASE, *KERN_VERS; * NOTE paravirtualization on xen is only available for linuxes right now * dmesg on linux systems reveals xen and virtualization method (HVM or PVM) * but we will worry about those later */ + +/* add any sysctl strings that suggest virtualization here */ const struct SYSCTL_LOOKUP_TABLE chassis_indicator_table[] = { { "QEMU Virtual CPU", "vm", NULL, FALSE, FALSE }, /* could be QEMU running in userspace or as part of KVM */ @@ -97,7 +98,7 @@ const struct SYSCTL_LOOKUP_TABLE chassis_indicator_table[] = { "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 } + { "Xen", "vm", "drive-multidisk", FALSE, FALSE } }; /* TODO: chroots, etc. are the actual "containers", add them */ /* archs to check against when determining if machine is server */ |