Brian Cain b3da2bd21f
(#9614) Add back check for Solaris derived guests
This commit adds back the `uname` test 93c571adbfab3c03fa2fa4cef406383eaf34d45d
removed to catch any solaris 11 derived guests like openindiana
2018-08-01 14:25:04 -07:00

20 lines
516 B
Ruby

# A general Vagrant system implementation for "solaris 11".
#
# Contributed by Jan Thomas Moldung <janth@moldung.no>
require "vagrant"
module VagrantPlugins
module GuestSolaris11
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
success = machine.communicate.test("grep 'Solaris 11' /etc/release")
return success if success
# for solaris derived guests like openindiana
machine.communicate.test("uname -sr | grep 'SunOS 5.11'")
end
end
end
end