The default /etc/issue might have been changed by the administrator and not contain the string 'Ubuntu' anymore.
12 lines
280 B
Ruby
12 lines
280 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestUbuntu
|
|
class Guest < Vagrant.plugin("2", :guest)
|
|
def detect?(machine)
|
|
machine.communicate.test("[ -x /usr/bin/lsb_release ] && /usr/bin/lsb_release -i 2>/dev/null | grep Ubuntu")
|
|
end
|
|
end
|
|
end
|
|
end
|