Merge pull request #1685 from fgrehm/more-reliable-ubuntu-and-debian-guest-detection
More reliable Ubuntu and Debian guest detection
This commit is contained in:
commit
f84b87df2d
|
@ -2,7 +2,7 @@ module VagrantPlugins
|
||||||
module GuestDebian
|
module GuestDebian
|
||||||
class Guest < Vagrant.plugin("2", :guest)
|
class Guest < Vagrant.plugin("2", :guest)
|
||||||
def detect?(machine)
|
def detect?(machine)
|
||||||
machine.communicate.test("cat /proc/version | grep 'Debian'")
|
machine.communicate.test("cat /etc/issue | grep 'Debian'")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
||||||
module GuestUbuntu
|
module GuestUbuntu
|
||||||
class Guest < VagrantPlugins::GuestDebian::Guest
|
class Guest < VagrantPlugins::GuestDebian::Guest
|
||||||
def detect?(machine)
|
def detect?(machine)
|
||||||
machine.communicate.test("cat /proc/version | grep 'Ubuntu'")
|
machine.communicate.test("cat /etc/issue | grep 'Ubuntu'")
|
||||||
end
|
end
|
||||||
|
|
||||||
def mount_shared_folder(name, guestpath, options)
|
def mount_shared_folder(name, guestpath, options)
|
||||||
|
|
Loading…
Reference in New Issue