Merge pull request #9398 from drscream/smartos-inheritance-solaris
More explicit Solaris 11 and inherit SmartOS from Solaris
This commit is contained in:
commit
279bceffb9
|
@ -11,7 +11,7 @@ module VagrantPlugins
|
|||
Config
|
||||
end
|
||||
|
||||
guest(:smartos) do
|
||||
guest(:smartos, :solaris) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ module VagrantPlugins
|
|||
module GuestSolaris11
|
||||
class Guest < Vagrant.plugin("2", :guest)
|
||||
def detect?(machine)
|
||||
machine.communicate.test("uname -sr | grep 'SunOS.*5\\.11'")
|
||||
machine.communicate.test("grep 'Solaris 11' /etc/release")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue