Some Artix Linux Distributions may be "migrated" from Arch and contain the "/etc/arch-release" file, leading to an incorrect OS being detected.
12 lines
237 B
Ruby
12 lines
237 B
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module HostArch
|
|
class Host < Vagrant.plugin("2", :host)
|
|
def detect?(env)
|
|
File.exist?("/etc/arch-release") and not File.exist?("/etc/artix-release")
|
|
end
|
|
end
|
|
end
|
|
end
|