From 0ee7eb338ff504a068b774851a565c74e365c846 Mon Sep 17 00:00:00 2001 From: Penaz Date: Fri, 20 Jan 2023 16:25:59 +0100 Subject: [PATCH] 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. --- plugins/hosts/arch/host.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hosts/arch/host.rb b/plugins/hosts/arch/host.rb index 0384eb25e..01de7c33d 100644 --- a/plugins/hosts/arch/host.rb +++ b/plugins/hosts/arch/host.rb @@ -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