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
|
Config
|
||||||
end
|
end
|
||||||
|
|
||||||
guest(:smartos) do
|
guest(:smartos, :solaris) do
|
||||||
require_relative "guest"
|
require_relative "guest"
|
||||||
Guest
|
Guest
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue