Merge pull request #7524 from nishidayuya/fix_ubuntu_guest_detection

A more reliable way to detect Ubuntu
This commit is contained in:
Seth Vargo 2016-07-18 22:01:11 -04:00 committed by GitHub
commit 30692fc857
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module VagrantPlugins
module GuestUbuntu module GuestUbuntu
class Guest < Vagrant.plugin("2", :guest) class Guest < Vagrant.plugin("2", :guest)
def detect?(machine) def detect?(machine)
machine.communicate.test("[ -x /usr/bin/lsb_release ] && /usr/bin/lsb_release -i 2>/dev/null | grep Ubuntu") machine.communicate.test("test -r /etc/os-release && . /etc/os-release && test xubuntu = x$ID")
end end
end end
end end