(#9614) Add back check for Solaris derived guests

This commit adds back the `uname` test 93c571adbf
removed to catch any solaris 11 derived guests like openindiana
This commit is contained in:
Brian Cain 2018-08-01 14:13:15 -07:00
parent 9daea21c4f
commit b3da2bd21f
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,11 @@ module VagrantPlugins
module GuestSolaris11
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("grep 'Solaris 11' /etc/release")
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