Merge pull request #9600 from kinvolk/kosy/coreos

Identify operating systems closely related to CoreOS
This commit is contained in:
Brian Cain 2018-03-22 10:11:43 -07:00 committed by GitHub
commit ab24bd2cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module VagrantPlugins
module GuestCoreOS
class Guest < Vagrant.plugin("2", :guest)
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