When dealing with lxc containers, '/proc/version' will have information about the host machine kernel that can possibly have information about an Ubuntu / Debian host, messing up with guest container detection.
10 lines
211 B
Ruby
10 lines
211 B
Ruby
module VagrantPlugins
|
|
module GuestDebian
|
|
class Guest < Vagrant.plugin("2", :guest)
|
|
def detect?(machine)
|
|
machine.communicate.test("cat /etc/issue | grep 'Debian'")
|
|
end
|
|
end
|
|
end
|
|
end
|