From e5445442c1e72343d2cd692bc8bad5bee681542d Mon Sep 17 00:00:00 2001 From: "Myles A. K. Steinhauser" Date: Tue, 14 Jan 2014 09:52:27 -0500 Subject: [PATCH 1/2] More specific Solaris <11 detection. Note: This will probably break on Solaris 12+, but not certain of a better approach for now. --- plugins/guests/solaris/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/solaris/guest.rb b/plugins/guests/solaris/guest.rb index 4256c61cd..d0c84f94a 100644 --- a/plugins/guests/solaris/guest.rb +++ b/plugins/guests/solaris/guest.rb @@ -7,7 +7,7 @@ module VagrantPlugins # Contributed by Blake Irvin class Guest < Vagrant.plugin("2", :guest) def detect?(machine) - machine.communicate.test("uname -s | grep SunOS") + machine.communicate.test("uname -sr | grep SunOS | grep -v 5.11") end end end From b34fdf010b984f7c87bc1507dce48d6402ee5321 Mon Sep 17 00:00:00 2001 From: Myles Steinhauser Date: Tue, 14 Jan 2014 09:56:01 -0500 Subject: [PATCH 2/2] More specific Solaris 11 detection --- plugins/guests/solaris11/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/solaris11/guest.rb b/plugins/guests/solaris11/guest.rb index de43769b4..a4d3c5b75 100644 --- a/plugins/guests/solaris11/guest.rb +++ b/plugins/guests/solaris11/guest.rb @@ -8,7 +8,7 @@ module VagrantPlugins module GuestSolaris11 class Guest < Vagrant.plugin("2", :guest) def detect?(machine) - machine.communicate.test("uname -s | grep SunOS") + machine.communicate.test("uname -sr | grep 'SunOS 5.11'") end end end