more robust coreos checking
This commit is contained in:
parent
2d01691e0a
commit
85d2f24607
|
@ -2,7 +2,7 @@ module VagrantPlugins
|
||||||
module GuestCoreOS
|
module GuestCoreOS
|
||||||
class Guest < Vagrant.plugin("2", :guest)
|
class Guest < Vagrant.plugin("2", :guest)
|
||||||
def detect?(machine)
|
def detect?(machine)
|
||||||
machine.communicate.test("cat /etc/gentoo-release | grep CoreOS || cat /etc/os-release | grep CoreOS")
|
machine.communicate.test("cat /etc/os-release | grep ID=coreos")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue