more robust coreos checking

This commit is contained in:
Eugene Ware 2014-02-15 15:50:11 +11:00
parent 2d01691e0a
commit 85d2f24607
1 changed files with 1 additions and 1 deletions

View File

@ -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