Merge pull request #10081 from briancain/add-extra-guest-check-solaris11
Add back check for Solaris derived guests
This commit is contained in:
commit
7ab3ba8cd3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue