diff --git a/.gitignore b/.gitignore index d73a842a2..a7ac018fe 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,9 @@ _site/* .yardoc/ doc/ +# Rubinius +*.rbc + # IDE junk .idea/* *.iml \ No newline at end of file diff --git a/lib/vagrant/hosts/linux.rb b/lib/vagrant/hosts/linux.rb index d60157d7d..40375483e 100644 --- a/lib/vagrant/hosts/linux.rb +++ b/lib/vagrant/hosts/linux.rb @@ -11,9 +11,9 @@ module Vagrant return nil if !Util::Platform.linux? return Arch if File.exist?("/etc/rc.conf") && File.exist?("/etc/pacman.conf") - if File.exist?("/etc/redhat-version") + if File.exist?("/etc/redhat-release") # Check if we have a known redhat release - File.open("/etc/redhat-version") do |f| + File.open("/etc/redhat-release") do |f| return Fedora if f.gets =~ /^Fedora/ end end