mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
(#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
1 changed files with 5 additions and 1 deletions
|
|
@ -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 a new issue