4 arch = Config::expand(CONFIG["arch"])
6 distro = if File.exist?("/etc/issue")
7 # this is "", "CentOS" or "Ubuntu"
8 `cat /etc/issue`.split.first.downcase
11 unless ["centos", nil, "ubuntu"].include? distro
12 STDERR.puts "unhandled /etc/issue result: #{distro}"
15 # either <arch> or <arch>_<distro> if distro is non-null
16 puts [arch, distro].compact.join("_")