Permalink
Browse files

OHAI-525: reverting part of OHAI-525

dmidecode isn't necessarily installed by default (fedora 20), while
the existing /proc/modules detection works fine.  i don't see why we
only need one mechanism, so try both and use which one works.
  • Loading branch information...
1 parent 95acf4e commit f5013a31e91e3a43b301a90d4ce92c41f2d58c19 @lamont-granquist lamont-granquist committed Jan 16, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/ohai/plugins/linux/virtualization.rb
@@ -56,6 +56,9 @@
elsif modules =~ /^vboxdrv/
virtualization[:system] = "vbox"
virtualization[:role] = "host"
+ elsif modules =~ /^vboxguest/
+ virtualization[:system] = "vbox"
+ virtualization[:role] = "guest"
end
end

0 comments on commit f5013a3

Please sign in to comment.