diff --git a/lib/train/platforms/detect/specifications/os.rb b/lib/train/platforms/detect/specifications/os.rb index fe0550e4..ca4ccf4e 100644 --- a/lib/train/platforms/detect/specifications/os.rb +++ b/lib/train/platforms/detect/specifications/os.rb @@ -62,7 +62,8 @@ def self.load } plat.name('raspbian').title('Raspbian Linux').in_family('debian') .detect { - if unix_file_exist?('/usr/bin/raspi-config') + if (linux_os_release && linux_os_release['NAME'] =~ /raspbian/i) || \ + unix_file_exist?('/usr/bin/raspi-config') @platform[:release] = unix_file_contents('/etc/debian_version').chomp true end