Merge pull request #10081 from briancain/add-extra-guest-check-solaris11

Add back check for Solaris derived guests
This commit is contained in:
Brian Cain 2018-08-02 11:32:33 -07:00 committed by GitHub
commit 7ab3ba8cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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