Be sure solaris11 is Solaris version 11 and no distribution based on (Open)Solaris

`uname -sr` return also 5.11 on OmniOS, SmartOS which is not the same as Oracle Solaris 11.x. SmartOS and OmniOS are inherit from Solaris and not from Solaris 11. For that reason we need a more explicit check that a solaris11 guest is a real Solaris version 11, for that reason the /etc/release file is checked.
This commit is contained in:
Thomas Merkel 2018-01-25 13:28:15 +01:00
parent 21febf6b6a
commit 93c571adbf
No known key found for this signature in database
GPG Key ID: 12AE4593D7A63833
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module VagrantPlugins
module GuestSolaris11 module GuestSolaris11
class Guest < Vagrant.plugin("2", :guest) class Guest < Vagrant.plugin("2", :guest)
def detect?(machine) def detect?(machine)
machine.communicate.test("uname -sr | grep 'SunOS.*5\\.11'") machine.communicate.test("grep 'Solaris 11' /etc/release")
end end
end end
end end