Ensure Arch Plugin doesn't detect Artix Linux

Some Artix Linux Distributions may be "migrated" from Arch and contain
the "/etc/arch-release" file, leading to an incorrect OS being detected.
This commit is contained in:
Penaz 2023-01-20 16:25:59 +01:00
parent 56d6cbaa8e
commit 0ee7eb338f

View File

@ -4,7 +4,7 @@ module VagrantPlugins
module HostArch
class Host < Vagrant.plugin("2", :host)
def detect?(env)
File.exist?("/etc/arch-release")
File.exist?("/etc/arch-release") and not File.exist?("/etc/artix-release")
end
end
end