Merge pull request #9600 from kinvolk/kosy/coreos
Identify operating systems closely related to CoreOS
This commit is contained in:
commit
ab24bd2cf1
|
@ -4,7 +4,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/os-release | grep ID=coreos")
|
machine.communicate.test("(cat /etc/os-release | grep ID=coreos) || (cat /etc/os-release | grep -E 'ID_LIKE=.*coreos.*')")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue