(#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:
parent
9daea21c4f
commit
b3da2bd21f
|
@ -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